flocon/hosts/common/sops.nix

12 lines
295 B
Nix

{
hostname,
username,
...
}: {
sops.defaultSopsFile = ../../secrets/secrets.yaml;
sops.defaultSopsFormat = "yaml";
sops.age.keyFile = "/home/${username}/.config/sops/age/keys.txt";
sops.secrets."syncthing/${hostname}/key" = {};
sops.secrets."syncthing/${hostname}/cert" = {};
}