1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-27 18:17:44 +00:00

chore: rename password age files

This commit is contained in:
RGBCube 2025-02-28 18:58:15 +03:00
parent 082dabb1af
commit d62084eb03
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M
7 changed files with 28 additions and 19 deletions

View file

@ -9,14 +9,17 @@ in {
path = config.secrets.id.path;
}];
secrets.thePassword.file = ./password.the.age;
secrets.password.file = ./password.age;
users.users = {
root.hashedPasswordFile = config.secrets.thePassword.path;
root = {
openssh.authorizedKeys.keys = keys.admins;
hashedPasswordFile = config.secrets.password.path;
};
the = {
description = "The";
openssh.authorizedKeys.keys = keys.admins;
hashedPasswordFile = config.secrets.thePassword.path;
hashedPasswordFile = config.secrets.password.path;
isNormalUser = true;
extraGroups = [ "wheel" ];
};
@ -24,14 +27,14 @@ in {
backup = {
description = "Backup";
openssh.authorizedKeys.keys = keys.all;
hashedPasswordFile = config.secrets.thePassword.path;
hashedPasswordFile = config.secrets.password.path;
isNormalUser = true;
};
build = {
description = "Build";
openssh.authorizedKeys.keys = keys.all;
hashedPasswordFile = config.secrets.thePassword.path;
hashedPasswordFile = config.secrets.password.path;
isNormalUser = true;
extraGroups = [ "build" ];
};

View file

@ -9,14 +9,17 @@ in {
path = config.secrets.id.path;
}];
secrets.floppyPassword.file = ./password.floppy.age;
secrets.password.file = ./password.age;
users.users = {
root.hashedPasswordFile = config.secrets.floppyPassword.path;
root = {
openssh.authorizedKeys.keys = keys.admins;
hashedPasswordFile = config.secrets.password.path;
};
floppy = {
description = "Floppy";
openssh.authorizedKeys.keys = keys.admins;
hashedPasswordFile = config.secrets.floppyPassword.path;
hashedPasswordFile = config.secrets.password.path;
isNormalUser = true;
extraGroups = [ "wheel" ];
};
@ -24,7 +27,7 @@ in {
backup = {
description = "Backup";
openssh.authorizedKeys.keys = keys.all;
hashedPasswordFile = config.secrets.floppyPassword.path;
hashedPasswordFile = config.secrets.password.path;
isNormalUser = true;
};
};

View file

@ -9,14 +9,17 @@ in {
path = config.secrets.id.path;
}];
secrets.sevenPassword.file = ./password.seven.age;
secrets.password.file = ./password.age;
users.users = {
root.hashedPasswordFile = config.secrets.sevenPassword.path;
root = {
openssh.authorizedKeys.keys = keys.admins;
hashedPasswordFile = config.secrets.password.path;
};
seven = {
description = "Hungry Seven";
openssh.authorizedKeys.keys = keys.admins;
hashedPasswordFile = config.secrets.sevenPassword.path;
hashedPasswordFile = config.secrets.password.path;
isNormalUser = true;
extraGroups = [ "wheel" ];
};
@ -24,7 +27,7 @@ in {
backup = {
description = "Backup";
openssh.authorizedKeys.keys = keys.all;
hashedPasswordFile = config.secrets.sevenPassword.path;
hashedPasswordFile = config.secrets.password.path;
isNormalUser = true;
};
};

View file

@ -3,7 +3,7 @@ let
in {
# best
"hosts/best/id.age".publicKeys = [ best ] ++ admins;
"hosts/best/password.the.age".publicKeys = [ best ] ++ admins;
"hosts/best/password.age".publicKeys = [ best ] ++ admins;
"hosts/best/cache/key.age".publicKeys = [ best ] ++ admins;
@ -22,11 +22,11 @@ in {
# disk
"hosts/disk/id.age".publicKeys = [ disk ] ++ admins;
"hosts/disk/password.floppy.age".publicKeys = [ disk ] ++ admins;
"hosts/disk/password.age".publicKeys = [ disk ] ++ admins;
# nine
"hosts/nine/id.age".publicKeys = [ nine ] ++ admins;
"hosts/nine/password.seven.age".publicKeys = [ nine ] ++ admins;
"hosts/nine/password.age".publicKeys = [ nine ] ++ admins;
"hosts/nine/github2forgejo/environment.age".publicKeys = [ nine ] ++ admins;