nixos/modules/sops.nix
2023-07-26 12:45:55 -04:00

21 lines
343 B
Nix

{
sops-nix,
self,
...
}: {
pkgs,
config,
...
}: {
imports = [
sops-nix.nixosModules.sops
];
environment.systemPackages = [
pkgs.sops
];
sops = {
defaultSopsFile = "${self}/hosts/${config.networking.hostName}/secrets.yaml";
age.sshKeyPaths = ["/etc/ssh/ssh_host_ed25519_key"];
};
_file = ./sops.nix;
}