20 lines
314 B
Nix
20 lines
314 B
Nix
{
|
|
inputs,
|
|
...
|
|
}:
|
|
let
|
|
secretsPath = builtins.toString inputs.mysecrets;
|
|
in
|
|
{
|
|
sops = {
|
|
defaultSopsFile = "${secretsPath}/secrets.yaml";
|
|
age = {
|
|
sshKeyPaths = [
|
|
"/etc/ssh/ssh_host_ed25519_key"
|
|
];
|
|
keyFile = "/var/lib/sops-nix/key.txt";
|
|
generateKey = true;
|
|
};
|
|
};
|
|
}
|