Skip to content

Commit 725f14e

Browse files
committed
Account for changed user name
1 parent af14d64 commit 725f14e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/vscode-server/default.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ import ./module.nix (
1717
let
1818
forEachUser = ({ path, file }: builtins.listToAttrs
1919
(builtins.map
20-
(username: {
20+
(username: let user = config.users.users.${username}; in {
2121
# Create the directory so that it has the appropriate permissions if it doesn't already exist
2222
# Otherwise the directive below creating the symlink would have that owned by root
23-
name = "${config.users.users.${username}.home}/${path}";
24-
value = file username;
23+
name = "${user.home}/${path}";
24+
value = file user.name;
2525
})
2626
cfg.enableForUsers.users));
2727
homeDirectory = (path: forEachUser {

0 commit comments

Comments
 (0)