sops: move sops module to global modules

This commit is contained in:
wo2wz 2025-11-21 13:09:18 -05:00
parent 6a751d78e9
commit 1a1167cd0d
2 changed files with 15 additions and 11 deletions

14
modules/nixos/services/homeserver/sops.nix Executable file → Normal file
View file

@ -1,13 +1,5 @@
{ inputs, config, ... }: { config, ... }:
{ {
imports = [ inputs.sops-nix.nixosModules.sops ]; sops.defaultSopsFile = "/etc/nixos/secrets/drone.yaml";
}
sops = {
defaultSopsFile = "/etc/nixos/secrets/secrets.yaml";
defaultSopsFormat = "yaml";
validateSopsFiles = false;
age.keyFile = "/root/.config/sops/age/keys.txt";
};
}

12
modules/nixos/services/sops.nix Executable file
View file

@ -0,0 +1,12 @@
{ inputs, config, ... }:
{
imports = [ inputs.sops-nix.nixosModules.sops ];
sops = {
defaultSopsFormat = "yaml";
validateSopsFiles = false;
age.keyFile = "/root/.config/sops/age/keys.txt";
};
}