valheim: added ntfy-sh notification
This commit is contained in:
parent
ef34dbb44f
commit
519fb5c078
|
@ -11,8 +11,8 @@ let
|
||||||
gid = toString user.gid;
|
gid = toString user.gid;
|
||||||
base_dir = "/var/lib/${name}";
|
base_dir = "/var/lib/${name}";
|
||||||
in
|
in
|
||||||
{
|
lib.mkMerge [
|
||||||
config = mkIf (podman.enable && podman.${name}.enable) {
|
(mkIf (podman.${name}.enable) {
|
||||||
services.caddy.virtualHosts.${domain}.extraConfig = ''
|
services.caddy.virtualHosts.${domain}.extraConfig = ''
|
||||||
reverse_proxy ${ip}:80
|
reverse_proxy ${ip}:80
|
||||||
'';
|
'';
|
||||||
|
@ -78,5 +78,13 @@ in
|
||||||
"io.containers.autoupdate" = "registry";
|
"io.containers.autoupdate" = "registry";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
})
|
||||||
}
|
{
|
||||||
|
profile.services.ntfy-sh.client.settings.subscribe = [
|
||||||
|
{
|
||||||
|
topic = "valheim";
|
||||||
|
command = ''${pkgs.libnotify}/bin/notify-send --category=im.received --urgency=normal "$title" "$message"'';
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
Loading…
Reference in a new issue