diff options
Diffstat (limited to 'modules/nixos/common')
-rw-r--r-- | modules/nixos/common/users.nix | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/modules/nixos/common/users.nix b/modules/nixos/common/users.nix index eca9e1b..a92a38e 100644 --- a/modules/nixos/common/users.nix +++ b/modules/nixos/common/users.nix @@ -1,7 +1,11 @@ -{ lib, ... }: +{ + lib, + localUsername ? lib.my.username, + ... +}: with lib; let - home = "/home/${my.username}"; + home = "/home/${localUsername}"; in { ark.directories = [ home ]; @@ -12,7 +16,7 @@ in users = { root.hashedPassword = "@HASHED_PASSWORD@"; - ${my.username} = { + ${localUsername} = { isNormalUser = true; uid = 1000; description = my.fullname; |