adding sops to fix gotify-desktop after long last

This commit is contained in:
2026-09-25 20:47:41 +01:00
parent e3fc39cf43
commit 4ee2cb0b19
6 changed files with 70 additions and 4 deletions

View File

@@ -0,0 +1,23 @@
{
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;
};
};
};
}