Files
dot/nix/modules/nixos/secrets.nix
Martin Pander 3bdd7e1c50 Add secrets
2026-02-07 16:11:52 +01:00

19 lines
338 B
Nix

{ inputs, config, ... }:
{
imports = [
inputs.sops-nix.nixosModules.sops
];
sops = {
defaultSopsFile = ../../secrets/secrets.yaml;
defaultSopsFormat = "yaml";
age = {
sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
# keyFile = "/var/lib/sops-nix/key.txt";
# generateKey = true;
};
};
}