Skip to content

Commit

Permalink
Account for changed user name
Browse files Browse the repository at this point in the history
  • Loading branch information
Ten0 committed Oct 20, 2024
1 parent af14d64 commit 725f14e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/vscode-server/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ import ./module.nix (
let
forEachUser = ({ path, file }: builtins.listToAttrs
(builtins.map
(username: {
(username: let user = config.users.users.${username}; in {
# Create the directory so that it has the appropriate permissions if it doesn't already exist
# Otherwise the directive below creating the symlink would have that owned by root
name = "${config.users.users.${username}.home}/${path}";
value = file username;
name = "${user.home}/${path}";
value = file user.name;
})
cfg.enableForUsers.users));
homeDirectory = (path: forEachUser {
Expand Down

0 comments on commit 725f14e

Please sign in to comment.