summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorKovacsics Robert <kovirobi@gmail.com>2023-01-29 16:50:32 +0000
committerGitHub <noreply@github.com>2023-01-29 16:50:32 +0000
commit0cc3a9eb0f58754c79adde45af112cbf3e3d85f8 (patch)
tree90db259f44169ea832e8b2e5c21e4d8c32d0c3c7 /modules
parentda9c1be5bc750f88730a1511fe973011da125064 (diff)
parent19bc20188db046664dafcf717fc53b9b513bf64b (diff)
Merge pull request #2 from nzbr/user-name-different-from-user-attr-name
Add tests for changing username and diverging user attr and name
Diffstat (limited to 'modules')
-rw-r--r--modules/wsl-distro.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/wsl-distro.nix b/modules/wsl-distro.nix
index 37b0dec..43d2bc6 100644
--- a/modules/wsl-distro.nix
+++ b/modules/wsl-distro.nix
@@ -104,6 +104,9 @@ with lib; {
ln -sf ${bash}/bin/sh /bin/sh
ln -sf ${pkgs.util-linux}/bin/mount /bin/mount
'';
+ update-entrypoint.text = ''
+ ln -sf ${config.users.users.root.shell} /nix/nixos-wsl/entrypoint
+ '';
};
systemd = {