sneeuwvlok/modules/nixos/system/security/sops/default.nix
2025-08-13 08:50:26 +02:00

22 lines
No EOL
431 B
Nix

{ pkgs, config, namespace, inputs, ... }:
let
cfg = config.${namespace}.system.security.sops;
in
{
imports = [
inputs.sops-nix.nixosModules.sops
];
options.${namespace}.system.security.sops = {};
config = {
environment.systemPackages = with pkgs; [ sops ];
sops = {
defaultSopsFile = ../../../../../_secrets/secrets.yaml;
defaultSopsFormat = "yaml";
age.keyFile = "/home/";
};
};
}