nichts/modules/other/users.nix
2025-01-07 19:54:27 +01:00

28 lines
540 B
Nix

{
config,
pkgs,
self,
...
}: let
inherit (config.meta.mainUser) username;
in {
users = {
mutableUsers = true;
users = {
${username} = {
isNormalUser = true;
extraGroups = [
"wheel"
"networking"
"video"
"networkmanager"
"audio"
"nix"
];
shell = self.packages.${pkgs.stdenv.system}.fish;
# hashedPasswordFile = "/etc/passwords/cr";
};
# root.hashedPasswordFile = "/persist/passwords/root";
};
};
}