25 lines
546 B
Nix
25 lines
546 B
Nix
{inputs, ...}: let
|
|
secretsPath = builtins.toString inputs.mysecrets;
|
|
in {
|
|
imports = [
|
|
inputs.sops-nix.nixosModules.sops
|
|
];
|
|
|
|
sops = {
|
|
age = {
|
|
sshKeyPaths = ["/etc/ssh/ssh_host_ed25519_key"];
|
|
keyFile = "/var/lib/sops-nix/key.txt";
|
|
generateKey = true;
|
|
};
|
|
defaultSopsFile = "${secretsPath}/secrets.yaml";
|
|
secrets = {
|
|
"user-password-hashed" = {};
|
|
"ssh-private-dunamis-user" = {
|
|
path = "/home/user/.ssh/id_ed25519";
|
|
mode = "0400";
|
|
owner = "user";
|
|
};
|
|
};
|
|
};
|
|
}
|