Files
nixos/modules/features/sops/default.nix

24 lines
471 B
Nix

{
self,
inputs,
...
}: {
flake.nixosModules.sops = {config, ...}: {
imports = [inputs.sops-nix.nixosModules.sops];
sops = {
age.keyFile = "/etc/sops/age/keys.txt";
defaultSopsFile = ./secrets.yaml;
secrets = {
gotify-desktop-key = {
path = "/run/secrets/gotify-desktop-key.txt";
};
};
templates = {
"gotify-desktop-key" = config.sops.placeholder.gotify-desktop-key;
};
};
};
}