secrets: move hashed passwords to agenix
This commit is contained in:
parent
e5d6210912
commit
a83c9a4644
|
@ -5,10 +5,10 @@ in
|
|||
{
|
||||
users.mutableUsers = false;
|
||||
users.users.root = {
|
||||
hashedPassword = secrets.shadow-hashed-password-root;
|
||||
passwordFile = config.age.secrets."users/root-hashed-password".path;
|
||||
};
|
||||
users.users.alarsyo = {
|
||||
hashedPassword = secrets.shadow-hashed-password-alarsyo;
|
||||
passwordFile = config.age.secrets."users/alarsyo-hashed-password".path;
|
||||
isNormalUser = true;
|
||||
extraGroups = [
|
||||
"media"
|
||||
|
|
|
@ -13,4 +13,7 @@ in
|
|||
{
|
||||
"restic-backup/zephyrus-password.age".publicKeys = [ alarsyo zephyrus ];
|
||||
"restic-backup/zephyrus-credentials.age".publicKeys = [ alarsyo zephyrus ];
|
||||
|
||||
"users/root-hashed-password.age".publicKeys = machines;
|
||||
"users/alarsyo-hashed-password.age".publicKeys = machines ++ [ alarsyo ];
|
||||
}
|
||||
|
|
BIN
modules/secrets/users/alarsyo-hashed-password.age
Normal file
BIN
modules/secrets/users/alarsyo-hashed-password.age
Normal file
Binary file not shown.
BIN
modules/secrets/users/root-hashed-password.age
Normal file
BIN
modules/secrets/users/root-hashed-password.age
Normal file
Binary file not shown.
Loading…
Reference in a new issue