mirror of
https://git.gay/xqtc/nixos-config
synced 2024-11-25 19:43:54 +01:00
21 lines
388 B
Nix
21 lines
388 B
Nix
{
|
|
inputs,
|
|
config,
|
|
lib,
|
|
...
|
|
}: {
|
|
sops = {
|
|
defaultSopsFile = ../../secrets.yaml;
|
|
validateSopsFiles = false;
|
|
|
|
age = {
|
|
sshKeyPaths = ["/etc/ssh/ssh_host_ed25519_key"];
|
|
keyFile =
|
|
if (config.os == "linux")
|
|
then "/home/xqtc/.config/sops/age/keys.txt"
|
|
else "/Users/xqtc/.config/sops/age/keys.txt";
|
|
generateKey = true;
|
|
};
|
|
};
|
|
}
|