This commit is contained in:
mjallen18
2025-07-23 09:50:11 -05:00
parent f8e80bd44c
commit 1bc7856d93
14 changed files with 105 additions and 88 deletions

View File

@@ -36,6 +36,11 @@ in
default = "matt";
description = "The name to use for the user account.";
};
passwordFile = lib.mkOption {
type = nullOr path;
default = null;
description = "Path to the password file for this user account";
};
};
config = {
@@ -44,6 +49,10 @@ in
extraGroups = [
"wheel"
"keys"
"networkmanager"
"ratbagd"
"scanner"
"systemd-journal"
"mpd"
"audio"
@@ -54,13 +63,15 @@ in
"tss"
"power"
"nix"
"i2c"
] ++ cfg.extraGroups;
group = "users";
home = "/home/${cfg.name}";
isNormalUser = true;
shell = lib.mkDefault pkgs.zsh;
shell = lib.mkForce pkgs.zsh;
uid = 1000;
hashedPasswordFile = cfg.passwordFile;
} // cfg.extraOptions;
};
}