nichts/modules/other/users.nix

23 lines
457 B
Nix
Raw Normal View History

2024-10-27 10:47:44 +01:00
{config, ...}: let
inherit (config.meta.mainUser) username;
in {
users = {
mutableUsers = false;
users = {
${username} = {
isNormalUser = true;
extraGroups = [
"wheel"
"networking"
"video"
"networkmanager"
"audio"
"nix"
];
hashedPasswordFile = "/etc/passwords/cr";
};
root.hashedPasswordFile = "/persist/passwords/root";
};
};
}