23 lines
493 B
Nix
23 lines
493 B
Nix
{ pkgs, inputs, config, configVars, ... }:
|
|
let
|
|
secretsDirectory = ../../../secrets.yaml;
|
|
secretsFile = "${secretsDirectory}/secrets.yaml";
|
|
homeDirectory = "/home/${configVars.username}";
|
|
in
|
|
{
|
|
imports = [
|
|
inputs.sops-nix.nixosModules.sops
|
|
];
|
|
|
|
sops = {
|
|
defaultSopsFile = "${secretsFile}";
|
|
validateSopsFiles = false;
|
|
|
|
age = {
|
|
sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
|
|
keyFile = "/var/lib/sops-nix/key.txt";
|
|
generateKey = true;
|
|
};
|
|
};
|
|
}
|