2024-06-03 23:38:29 +02:00
|
|
|
{
|
|
|
|
inputs,
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
secretsDirectory = builtins.toString inputs.nix-secrets;
|
|
|
|
in {
|
|
|
|
imports = [
|
|
|
|
inputs.sops-nix.nixosModules.sops
|
|
|
|
];
|
|
|
|
sops = {
|
|
|
|
validateSopsFiles = false;
|
2024-06-04 18:00:43 +02:00
|
|
|
age = {
|
|
|
|
sshKeyPaths = ["/etc/ssh/ssh_host_ed25519_key"];
|
|
|
|
keyFile = "/var/lib/sops-nix/key.txt";
|
|
|
|
generateKey = true;
|
|
|
|
};
|
2024-06-03 23:38:29 +02:00
|
|
|
};
|
|
|
|
}
|