feat: massive refactoring...

This commit is contained in:
Xavier Morel
2025-11-09 00:45:00 +01:00
parent f9446df46d
commit 3245b6b89f
77 changed files with 3233 additions and 582 deletions

36
secrets/secrets.nix Normal file
View File

@@ -0,0 +1,36 @@
let
config = (import ../config/_globals.nix { }).globals;
users = [
config.master.public_ssh_key
];
keys = import ../config/_keys.nix;
common = builtins.attrValues (keys);
in
{
# TODO: Probably there would be a way to guess the default service key from the secret prefix
"auth-authentik-ldap-secrets.age".publicKeys = users ++ [
keys.auth
];
"auth-authentik-proxy-secrets.age".publicKeys = users ++ [
keys.auth
];
"auth-authentik-secrets.age".publicKeys = users ++ [
keys.auth
];
"db-postgres-initscript.age".publicKeys = users ++ [
keys.db
];
"finances-app-key.age".publicKeys = users ++ [
keys.finances
];
"power-password-file.age".publicKeys = users ++ [
keys.power
];
"proxy-dns-provider-config.age".publicKeys = users ++ [
keys.proxy
];
"yarrr-env.age".publicKeys = users ++ [
keys.yarrr
];
}