diff options
| author | schererleander <leander@schererleander.de> | 2025-07-30 23:53:36 +0200 |
|---|---|---|
| committer | schererleander <leander@schererleander.de> | 2025-07-30 23:53:36 +0200 |
| commit | 9d18586e046fb395efe3fa55cff6a5079aeb7117 (patch) | |
| tree | 315f1ad13c1e0823a0416ea98412deca1cc8a7f1 /hosts/desktop/configuration.nix | |
| parent | d9a3e99839075f98d6ae41fc30f9d5f34b45ac6f (diff) | |
feat: pass username to modules
Diffstat (limited to 'hosts/desktop/configuration.nix')
| -rw-r--r-- | hosts/desktop/configuration.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hosts/desktop/configuration.nix b/hosts/desktop/configuration.nix index 0165a04..de83b42 100644 --- a/hosts/desktop/configuration.nix +++ b/hosts/desktop/configuration.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ pkgs, username, ... }: { @@ -43,7 +43,7 @@ console.keyMap = "de"; # User - users.users.leander = { + users.users.${username} = { isNormalUser = true; extraGroups = [ "networkmanager" @@ -62,8 +62,8 @@ programs.dconf.enable = true; - users.users.leander.shell = pkgs.zsh; - users.users.leander.ignoreShellProgramCheck = true; + users.users.${username}.shell = pkgs.zsh; + users.users.${username}.ignoreShellProgramCheck = true; nix.settings.experimental-features = [ "nix-command" |
