diff --git a/common/icons/libreddit.png b/common/icons/libreddit.png new file mode 100644 index 0000000..2daa6df Binary files /dev/null and b/common/icons/libreddit.png differ diff --git a/docs/ports.md b/docs/ports.md index 70ec739..3580bba 100644 --- a/docs/ports.md +++ b/docs/ports.md @@ -1,6 +1,6 @@ # Ports -The idea is to always use consecutive ports, but never go back and try to recycle older no longer user ports (for the sake of keeping things clean). +The idea is to always use consecutive ports, but never go back and try to recycle older no longer used ports (for the sake of keeping things clean). | Port | Description | | ---- | --------------------------------------------------------------------------- | @@ -19,3 +19,4 @@ The idea is to always use consecutive ports, but never go back and try to recycl | 8413 | [commafeed](../hosts/nixos/lapetus/services/commafeed.nix) | | 8414 | [invidious](../hosts/nixos/lapetus/services/invidious.nix) | | 8415 | [radicale](../hosts/nixos/lapetus/services/radicale.nix) | +| 8416 | [redlib](../hosts/nixos/lapetus/services/redlib.nix) | diff --git a/hosts/nixos/lapetus/default.nix b/hosts/nixos/lapetus/default.nix index f508e0d..e5910bd 100644 --- a/hosts/nixos/lapetus/default.nix +++ b/hosts/nixos/lapetus/default.nix @@ -20,6 +20,7 @@ ./services/diptime.nix ./services/radicale.nix ./services/ddclient.nix + ./services/redlib.nix ./filesystems ./hardware ]; diff --git a/hosts/nixos/lapetus/services/homer.nix b/hosts/nixos/lapetus/services/homer.nix index 4c6121c..a3352df 100644 --- a/hosts/nixos/lapetus/services/homer.nix +++ b/hosts/nixos/lapetus/services/homer.nix @@ -126,6 +126,12 @@ in logo = icon "invidious.png"; url = "https://yt.moonythm.dev"; } + { + name = "Redlib"; + subtitle = "Reddit client"; + logo = icon "libreddit.png"; + url = "https://redlib.moonythm.dev"; + } { name = "Diptime"; subtitle = "Diplomacy timer"; diff --git a/hosts/nixos/lapetus/services/redlib.nix b/hosts/nixos/lapetus/services/redlib.nix new file mode 100644 index 0000000..9846458 --- /dev/null +++ b/hosts/nixos/lapetus/services/redlib.nix @@ -0,0 +1,12 @@ +{ config, pkgs, ... }: { + imports = [ ../../common/optional/services/nginx.nix ]; + + services.nginx.virtualHosts."redlib.moonythm.dev" = + config.satellite.proxy config.services.invidious.port { }; + + services.libreddit = { + enable = true; + port = 8416; + package = pkgs.redlib; + }; +}