mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-07 05:27:13 -06:00
feat: set up declarative password with sops
This commit is contained in:
parent
05ea17564f
commit
882c220bef
1 changed files with 33 additions and 28 deletions
|
|
@ -22,34 +22,39 @@ in
|
|||
};
|
||||
|
||||
users = {
|
||||
users.${user0} = {
|
||||
description = name;
|
||||
name = user0;
|
||||
isNormalUser = true;
|
||||
shell = pkgs.nushell;
|
||||
hashedPasswordFile = config.sops.secrets."passwords/user0".path;
|
||||
extraGroups = [
|
||||
"adbusers"
|
||||
"caddy"
|
||||
"disk"
|
||||
"jellyfin"
|
||||
"libvirtd"
|
||||
"minecraft"
|
||||
"netdev"
|
||||
"networkmanager"
|
||||
"ollama"
|
||||
"opencloud"
|
||||
"plugdev"
|
||||
"docker"
|
||||
"postgres"
|
||||
"redis-mastodon"
|
||||
"samba"
|
||||
"syncthing"
|
||||
"vaultwarden"
|
||||
"vboxusers"
|
||||
"wheel"
|
||||
"comfyui"
|
||||
];
|
||||
users = {
|
||||
"root" = {
|
||||
hashedPasswordFile = config.sops.secrets."passwords/user0".path;
|
||||
};
|
||||
${user0} = {
|
||||
description = name;
|
||||
name = user0;
|
||||
isNormalUser = true;
|
||||
shell = pkgs.nushell;
|
||||
hashedPasswordFile = config.sops.secrets."passwords/user0".path;
|
||||
extraGroups = [
|
||||
"adbusers"
|
||||
"caddy"
|
||||
"disk"
|
||||
"jellyfin"
|
||||
"libvirtd"
|
||||
"minecraft"
|
||||
"netdev"
|
||||
"networkmanager"
|
||||
"ollama"
|
||||
"opencloud"
|
||||
"plugdev"
|
||||
"docker"
|
||||
"postgres"
|
||||
"redis-mastodon"
|
||||
"samba"
|
||||
"syncthing"
|
||||
"vaultwarden"
|
||||
"vboxusers"
|
||||
"wheel"
|
||||
"comfyui"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
home-manager.users = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue