diff --git a/hosts/architect/invidious.nix b/hosts/architect/invidious.nix new file mode 100644 index 0000000..d89553d --- /dev/null +++ b/hosts/architect/invidious.nix @@ -0,0 +1,26 @@ +{ pkgs, ... }: + +with import ./network.nix; + +let domain = "tube.giugl.io"; +in { + services = { + invidious = { + enable = true; + port = 9091; + }; + + nginx.virtualHosts.${domain} = { + forceSSL = true; + enableACME = true; + locations."/" = { + proxyPass = "http://localhost:9091"; + }; + }; + }; + + networking.extraHosts = '' + ${architect-lan} ${domain} + ${architect-wg} ${domain} + ''; +} diff --git a/hosts/architect/libreddit.nix b/hosts/architect/libreddit.nix new file mode 100644 index 0000000..9eccc19 --- /dev/null +++ b/hosts/architect/libreddit.nix @@ -0,0 +1,28 @@ +{ pkgs, ... }: + +with import ./network.nix; + +let domain = "reddit.giugl.io"; +in { + services = { + libreddit.enable = true; + + nginx.virtualHosts.${domain} = { + forceSSL = true; + enableACME = true; + locations."/" = { + proxyPass = "http://localhost:8080"; + extraConfig = '' + allow 10.0.0.0/24; + allow 10.3.0.0/24; + deny all; + ''; + }; + }; + }; + + networking.extraHosts = '' + ${architect-lan} ${domain} + ${architect-wg} ${domain} + ''; +} diff --git a/hosts/architect/nitter.nix b/hosts/architect/nitter.nix new file mode 100644 index 0000000..c11c6d9 --- /dev/null +++ b/hosts/architect/nitter.nix @@ -0,0 +1,26 @@ +{ pkgs, ... }: + +with import ./network.nix; + +let domain = "tweet.giugl.io"; +in { + services = { + nitter = { + enable = true; + port = 9093; + }; + + nginx.virtualHosts.${domain} = { + forceSSL = true; + enableACME = true; + locations."/" = { + proxyPass = "http://localhost:9093"; + }; + }; + }; + + networking.extraHosts = '' + ${architect-lan} ${domain} + ${architect-wg} ${domain} + ''; +}