nixos-config/common/sops.nix

34 lines
586 B
Nix
Raw Normal View History

2024-07-03 17:52:10 +02:00
{
inputs,
config,
lib,
...
}: {
imports = [
inputs.sops-nix.nixosModules.sops
];
2024-10-08 11:19:34 +02:00
sops = {
2024-07-03 17:52:10 +02:00
defaultSopsFile = ../secrets.yaml;
validateSopsFiles = false;
age = {
sshKeyPaths = ["/etc/ssh/ssh_host_ed25519_key"];
keyFile = "/var/lib/sops/age/keys.txt";
generateKey = true;
};
};
sops.secrets = {
xqtc_private = {
path = "/home/xqtc/.ssh/id_ed25519";
owner = "xqtc";
mode = "600";
};
xqtc_public = {
path = "/home/xqtc/.ssh/id_ed25519.pub";
owner = "xqtc";
mode = "640";
};
};
2024-07-03 17:52:10 +02:00
}