nixos-config/common/sops.nix

22 lines
333 B
Nix
Raw Normal View History

2024-07-03 17:52:10 +02:00
{
inputs,
config,
lib,
...
}: {
imports = [
inputs.sops-nix.nixosModules.sops
];
sops = {
defaultSopsFile = ../secrets.yaml;
validateSopsFiles = false;
age = {
sshKeyPaths = ["/etc/ssh/ssh_host_ed25519_key"];
keyFile = "/var/lib/sops/age/keys.txt";
generateKey = true;
};
};
}