Ntfy setup
This commit is contained in:
parent
7e63b18eef
commit
bad95afc7b
4 changed files with 27 additions and 3 deletions
|
|
@ -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
16
modules/nixos/ntfy.nix
Normal 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 ];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue