nixos/modules/sops.nix

12 lines
323 B
Nix
Raw Normal View History

2023-06-09 20:54:03 +08:00
inputs:
2023-06-09 16:06:02 +08:00
{
config.sops =
{
2023-06-09 20:54:03 +08:00
defaultSopsFile = ../secrets/${inputs.config.networking.hostName}.yaml;
2023-06-27 20:50:26 +08:00
# sops start before impermanence, so we need to use the absolute path
2023-07-02 14:53:37 +08:00
age.sshKeyPaths = [ "/nix/persistent/etc/ssh/ssh_host_ed25519_key" ];
gnupg.sshKeyPaths = [ "/nix/persistent/etc/ssh/ssh_host_rsa_key" ];
2023-06-09 16:06:02 +08:00
};
}