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" '' config-file = pkgs.writeText "config.toml" ''
[gotify] [gotify]
url = "wss://ntfy.voidarc.co.uk:443" 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] [notification]
min_priority = 1 min_priority = 1
''; '';

View File

@@ -1,8 +1,4 @@
{ {inputs, ...}: {
self,
inputs,
...
}: {
flake.nixosModules.sops = {config, ...}: { flake.nixosModules.sops = {config, ...}: {
imports = [inputs.sops-nix.nixosModules.sops]; imports = [inputs.sops-nix.nixosModules.sops];
@@ -12,12 +8,17 @@
secrets = { secrets = {
gotify-desktop-key = { gotify-desktop-key = {
path = "/run/secrets/gotify-desktop-key.txt"; # Make readable
mode = "0444";
}; };
}; };
templates = { 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 -"
];
}; };
} }