my nixos config
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

add ntfy.sh server

chfour 850e8f59 542f4956

+26
+1
machines/fovps/services/default.nix
··· 6 6 ./cloudlog.nix 7 7 ./minecraft.nix 8 8 ./synapse.nix 9 + ./ntfy-sh.nix 9 10 ]; 10 11 }
+25
machines/fovps/services/ntfy-sh.nix
··· 1 + { pkgs, config, ... }: 2 + 3 + let 4 + domain = "ntfy.yip.eeep.ee"; 5 + 6 + ntfy = config.services.ntfy-sh; 7 + in 8 + { 9 + services.ntfy-sh.enable = true; 10 + 11 + services.ntfy-sh.settings = { 12 + base-url = "https://${domain}"; 13 + behind-proxy = true; 14 + auth-default-access = "deny-all"; # sorry 15 + }; 16 + systemd.services.ntfy-sh.postStart = '' 17 + # unifiedpush write-only access for everyone 18 + ${ntfy.package}/bin/ntfy access '*' 'up*' write-only 19 + ''; 20 + 21 + services.caddy.enable = true; 22 + services.caddy.virtualHosts."https://${domain}".extraConfig = '' 23 + reverse_proxy * ${ntfy.settings.listen-http} 24 + ''; 25 + }