mirror of
https://github.com/Superredstone/nixos.git
synced 2026-03-08 04:38:06 +01:00
feat(secret): add user_password
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
pkgs,
|
||||
currentSystemUser,
|
||||
currentSystemDe,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{
|
||||
@@ -51,13 +52,14 @@
|
||||
users.users.${currentSystemUser} = {
|
||||
isNormalUser = true;
|
||||
description = "Patrick Canal";
|
||||
shell = pkgs.fish;
|
||||
hashedPasswordFile = config.sops.secrets.user_password.path;
|
||||
extraGroups = [
|
||||
"networkmanager"
|
||||
"wheel"
|
||||
"docker"
|
||||
"libvirtd"
|
||||
];
|
||||
shell = pkgs.fish;
|
||||
};
|
||||
|
||||
nix.settings = {
|
||||
|
||||
@@ -13,6 +13,9 @@
|
||||
"wifi_password" = {
|
||||
owner = currentSystemUser;
|
||||
};
|
||||
"user_password" = {
|
||||
neededForUsers = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user