fixed gotify desktop finally

This commit is contained in:
2026-09-25 21:00:34 +01:00
parent 8b33848660
commit 38ffd22819
2 changed files with 9 additions and 8 deletions

View File

@@ -18,7 +18,7 @@
config-file = pkgs.writeText "config.toml" ''
[gotify]
url = "wss://ntfy.voidarc.co.uk:443"
token = { command = "cat /run/secrets/gotify-desktop-key.txt"}
token = { command = "cat /run/secrets/gotify-desktop-key"}
[notification]
min_priority = 1
'';

View File

@@ -1,8 +1,4 @@
{
self,
inputs,
...
}: {
{inputs, ...}: {
flake.nixosModules.sops = {config, ...}: {
imports = [inputs.sops-nix.nixosModules.sops];
@@ -12,12 +8,17 @@
secrets = {
gotify-desktop-key = {
path = "/run/secrets/gotify-desktop-key.txt";
# Make readable
mode = "0444";
};
};
templates = {
"gotify-desktop-key" = config.sops.placeholder.gotify-desktop-key;
"gotify-desktop-key".content = config.sops.placeholder.gotify-desktop-key;
};
};
# Make the secrets dir readable to normal users
systemd.tmpfiles.rules = [
"d /run/secrets 0755 root root -"
];
};
}