Ntfy setup

This commit is contained in:
Filippo Berto 2024-03-05 15:55:49 +01:00
parent 7e63b18eef
commit bad95afc7b
Signed by: bertof
GPG key ID: 9DBF7E6A1D2CE9ED
4 changed files with 27 additions and 3 deletions

View file

@ -2,9 +2,7 @@
home = {
language.base = "it_IT.UTF-8";
packages = builtins.attrValues {
inherit (pkgs)
fd file htop mmv-go neofetch nixos-option pv ripgrep unrar unzip wget
xclip yq zip;
inherit (pkgs) fd file htop mmv-go neofetchnixos-optionntfy-shpvripgrepunrarunzipwget xclip yq zip;
};
};

16
modules/nixos/ntfy.nix Normal file
View file

@ -0,0 +1,16 @@
let
port = 7080;
in
{
services.ntfy-sh = {
enable = true;
settings = {
listen-http = ":${toString port}";
base-url = "https://ntfy.bertof.net";
behind-proxy = true;
auth-default-access = "deny-all";
};
};
networking.firewall.allowedTCPPorts = [ port ];
}