feat: enable sopsdiffing for home secrets as well

This commit is contained in:
Gabriel Fontes
2026-06-15 11:25:30 -03:00
parent 3617298d61
commit c3436b23f6
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -1,3 +1,4 @@
nixos/hosts/*/secrets/*.yaml diff=sopsdiffer
nixos/common/secrets/*.yaml diff=sopsdiffer
home/gabriel/**/*/*.yaml diff=sopsdiffer
nix linguist-generated=true
+2
View File
@@ -1,6 +1,7 @@
{
inputs,
config,
pkgs,
...
}: let
isEd25519 = k: k.type == "ed25519";
@@ -8,6 +9,7 @@
keys = builtins.filter isEd25519 config.services.openssh.hostKeys;
in {
imports = [inputs.sops-nix.nixosModules.sops];
environment.systemPackages = [pkgs.sops];
sops = {
age.sshKeyPaths = map getKeyPath keys;