sops: convert format of secrets files from yaml to json

This commit is contained in:
SebastianStork 2025-07-20 13:28:16 +02:00
parent 9820bdc1e3
commit 2e3b64860f
17 changed files with 202 additions and 232 deletions

View file

@ -22,7 +22,7 @@ in
config = lib.mkIf cfg.enable {
sops = {
age.sshKeyPaths = [ "${config.home.homeDirectory}/.ssh/id_ed25519" ];
defaultSopsFile = "${self}/users/${config.home.username}/@${cfg.hostName}/secrets.yaml";
defaultSopsFile = "${self}/users/${config.home.username}/@${cfg.hostName}/secrets.json";
};
};
}

View file

@ -13,7 +13,7 @@
config = lib.mkIf config.custom.sops.enable {
sops = {
age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
defaultSopsFile = "${self}/hosts/${config.networking.hostName}/secrets.yaml";
defaultSopsFile = "${self}/hosts/${config.networking.hostName}/secrets.json";
};
};
}