nixos-config/home/modules/sops.nix

21 lines
388 B
Nix
Raw Normal View History

2024-07-03 17:52:10 +02:00
{
inputs,
config,
lib,
...
}: {
sops = {
defaultSopsFile = ../../secrets.yaml;
validateSopsFiles = false;
age = {
sshKeyPaths = ["/etc/ssh/ssh_host_ed25519_key"];
2024-10-08 11:19:34 +02:00
keyFile =
if (config.os == "linux")
then "/home/xqtc/.config/sops/age/keys.txt"
else "/Users/xqtc/.config/sops/age/keys.txt";
2024-07-03 17:52:10 +02:00
generateKey = true;
};
};
}