sops: Read age public-keys from files

This commit is contained in:
SebastianStork 2025-12-25 20:23:03 +01:00
parent de16ca49e8
commit 10362bd42b
Signed by: SebastianStork
SSH key fingerprint: SHA256:iEM011ogNMG1q8+U500adGu/9rpPuZ2KnFtbdLeqTiI
11 changed files with 11 additions and 21 deletions

View file

@ -17,7 +17,7 @@ in
enable = lib.mkEnableOption "";
agePublicKey = lib.mkOption {
type = lib.types.nonEmptyStr;
default = "";
default = "${self}/hosts/${config.networking.hostName}/keys/age.pub" |> lib.readFile |> lib.trim;
};
secretsFile = lib.mkOption {
type = lib.types.nonEmptyStr;