all use vault sops age

This commit is contained in:
Lennart J. Kurzweg (Nx2)
2025-10-05 01:50:43 +02:00
parent 1fc8b2a7cb
commit ff5de39a19
3 changed files with 43 additions and 43 deletions

View File

@@ -1,18 +1,7 @@
{ pkgs, ... }@all: with all; {
imports = [ inputs.sops-nix.homeManagerModules.sops ];
sops = {
age.keyFile = if (hyper.host == "NxXPS") then
"${hyper.home}/vault/age/sops-xps-home.key"
else if (hyper.host == "NxACE") then
"${hyper.home}/.age_nx2_key_13.txt"
else if (hyper.host == "NxNORTH") then
"${hyper.home}/.age_nx2_key_13.txt"
else "unkown host in sops.nix";
age.keyFile = "${hyper.home}/vault/age/sopsnix-${hyper.host}-home.key";
defaultSopsFile = ../sops-secrets.yaml;
secrets = {
"example" = {
path = "%r/secrets/example";
};
};
};
}