nixos/users: set password for root

This commit is contained in:
2026-04-30 17:42:52 -04:00
parent 2407b82625
commit 6f4b856724
+13 -9
View File
@@ -45,14 +45,18 @@ let
};
};
in
(builtins.foldl'
(attrs: user: {
options = lib.recursiveUpdate attrs.options (mkUser user.name attrs.uid (user.options or { }));
uid = attrs.uid + 1;
})
lib.recursiveUpdate
(builtins.foldl'
(attrs: user: {
options = lib.recursiveUpdate attrs.options (mkUser user.name attrs.uid (user.options or { }));
uid = attrs.uid + 1;
})
{
options = { };
uid = 1000;
}
users
).options
{
options = { };
uid = 1000;
users.users.root.initialPassword = "tuxcord";
}
users
).options