nixconfig/modules/secret.nix
2023-05-20 23:57:19 +02:00

17 lines
456 B
Nix

{
config,
...
}:{
sops.defaultSopsFile = ../secrets/common.yaml;
sops.age.keyFile = "/var/lib/sops-nix/age-key.txt"; #opt/nixflake/secrets/age-key.txt;
sops.age.generateKey = true;
sops.secrets.wifi = {};
sops.secrets."${config.hostcfg.hostname}_ssh_priv" = {};
sops.secrets."${config.hostcfg.hostname}_ssh_pub" = {};
sops.secrets."${config.hostcfg.hostname}_wg_priv" = {};
sops.secrets."${config.hostcfg.hostname}_wg_pub" = {};
}