nichts/modules/other/users.nix

30 lines
563 B
Nix
Raw Normal View History

2024-11-01 15:54:20 +01:00
{
config,
pkgs,
self,
...
}: let
2024-10-27 10:47:44 +01:00
inherit (config.meta.mainUser) username;
in {
users = {
mutableUsers = false;
users = {
${username} = {
isNormalUser = true;
extraGroups = [
"wheel"
"networking"
"video"
"networkmanager"
"audio"
"nix"
];
2024-11-01 14:26:59 +01:00
homix = true;
2024-11-01 15:54:20 +01:00
shell = self.packages.${pkgs.stdenv.system}.fish;
2024-10-28 21:52:16 +01:00
# hashedPasswordFile = "/etc/passwords/cr";
2024-10-27 10:47:44 +01:00
};
2024-10-28 21:52:16 +01:00
# root.hashedPasswordFile = "/persist/passwords/root";
2024-10-27 10:47:44 +01:00
};
};
}