nixos/users: set password for root

This commit is contained in:
2026-04-30 17:42:52 -04:00
parent 6da749822b
commit 1a96ecf302
+6 -2
View File
@@ -45,7 +45,8 @@ let
};
};
in
(builtins.foldl'
lib.recursiveUpdate
(builtins.foldl'
(attrs: user: {
options = lib.recursiveUpdate attrs.options (mkUser user.name attrs.uid (user.options or { }));
uid = attrs.uid + 1;
@@ -55,4 +56,7 @@ in
uid = 1000;
}
users
).options
).options
{
users.users.root.initialPassword = "tuxcord";
}