This commit is contained in:
RingOfStorms (Joshua Bell) 2025-03-17 11:22:50 -05:00
parent 7e7f04574b
commit 49861c4c33
3 changed files with 86 additions and 89 deletions

View file

@ -44,10 +44,8 @@ in
// {
inherit name;
isNormalUser = true;
# TODO
# initialPassword = lib.mkIf (
# userConfig.initialPassword != null
# ) userConfig.initialPassword "password1";
initialPassword =
if (lib.hasAttr "initialPassword" userConfig) then userConfig.initialPassword else "password1";
extraGroups =
lib.optionals (builtins.elem name cfg.admins) [ "wheel" ] ++ (userConfig.extraGroups or [ ]);
}