nixos-config/modules/system/sops.nix
2024-03-12 21:10:35 +01:00

17 lines
345 B
Nix

{
inputs,
config,
lib,
...
}: {
imports = [inputs.sops-nix.nixosModules.sops];
options.myConfig.sops.enable = lib.mkEnableOption "";
config = lib.mkIf config.myConfig.sops.enable {
sops = {
age.sshKeyPaths = ["/etc/ssh/ssh_host_ed25519_key"];
defaultSopsFile = ../../hosts/dell-laptop/secrets.yaml;
};
};
}