fixed gotify desktop finally
This commit is contained in:
@@ -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
|
||||||
'';
|
'';
|
||||||
|
|||||||
@@ -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 -"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user