sneeuwvlok/modules/nixos/system/security/sops/default.nix
2025-07-28 14:34:40 +02:00

22 lines
No EOL
427 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/";
};
};
}