nix-conf/system/modules/users.nix
2026-01-10 12:46:40 +08:00

24 lines
385 B
Nix
Executable file

{
pkgs,
config,
...
}:
let
inherit (config.systemConf) username;
in
{
users.users.${username} = {
isNormalUser = true;
shell = pkgs.bash; # Actually fish
extraGroups = (
[
"wheel"
"input"
"networkmanager"
"docker"
"kvm"
]
++ (if config.programs.gamemode.enable then [ "gamemode" ] else [ ])
);
};
}