diff --git a/hosts/lightsail-tokyo/Caddyfile b/hosts/lightsail-tokyo/Caddyfile index b383c1b..ba8c3a2 100644 --- a/hosts/lightsail-tokyo/Caddyfile +++ b/hosts/lightsail-tokyo/Caddyfile @@ -107,3 +107,8 @@ rss.ny4.dev { import default reverse_proxy localhost:9300 } + +reddit.ny4.dev { + import default + reverse_proxy localhost:9400 +} diff --git a/hosts/lightsail-tokyo/default.nix b/hosts/lightsail-tokyo/default.nix index ae9900b..652b63c 100644 --- a/hosts/lightsail-tokyo/default.nix +++ b/hosts/lightsail-tokyo/default.nix @@ -184,6 +184,7 @@ database.passwordFile = toString (pkgs.writeText "password" "keycloak"); }; + # TODO: eventually, use blog homepage services.homepage-dashboard = { enable = true; listenPort = 9200; @@ -203,6 +204,17 @@ in mapAttrsToList' { "Services" = mapAttrsToList' { + "Mumble" = { + description = "${getDesc pkgs.mumble} (Connect with tyo0.ny4.dev:64738)"; + }; + "Ntfy" = { + description = getDesc pkgs.ntfy; + href = "https://ntfy.ny4.dev/"; + }; + "Redlib" = { + description = getDesc pkgs.redlib; + href = "https://reddit.ny4.dev/"; + }; "SearXNG" = { description = getDesc pkgs.searxng; href = "https://searx.ny4.dev/"; @@ -211,15 +223,19 @@ description = getDesc pkgs.wastebin; href = "https://pb.ny4.dev/"; }; - "Ntfy" = { - description = getDesc pkgs.ntfy; - href = "https://ntfy.ny4.dev/"; - }; - "Mumble" = { - description = "${getDesc pkgs.mumble} (Connect with tyo0.ny4.dev:64738)"; - }; + }; + "Links" = mapAttrsToList' { + "Blog".href = "https://blog.ny4.dev/"; + "Forgejo".href = "https://git.ny4.dev/nyancat"; + "GitHub".href = "https://github.com/Guanran928"; + "Mastodon".herf = "https://mastodon.ny4.dev/@nyancat"; + "Matrix".href = "https://matrix.to/#/@nyancat:ny4.dev"; }; "Private stuff" = mapAttrsToList' { + "Forgejo" = { + description = getDesc pkgs.forgejo; + href = "https://git.ny4.dev/"; + }; "Mastodon" = rec { description = getDesc pkgs.mastodon; href = "https://mastodon.ny4.dev/"; @@ -230,25 +246,18 @@ description = getDesc pkgs.element-web; href = "https://element.ny4.dev/"; }; + "Miniflux" = { + description = getDesc pkgs.miniflux; + href = "https://rss.ny4.dev/"; + }; "PixivFE" = { - description = getDesc inputs.self.packages.${pkgs.stdenv.hostPlatform.system}.pixivfe; + description = getDesc inputs.self.legacyPackages.${pkgs.stdenv.hostPlatform.system}.pixivfe; href = "https://pixiv.ny4.dev"; }; "Uptime Kuma" = { description = getDesc pkgs.uptime-kuma; href = "https://uptime.ny4.dev/"; }; - "Forgejo" = { - description = getDesc pkgs.forgejo; - href = "https://git.ny4.dev/"; - }; - }; - "Links" = mapAttrsToList' { - "Blog".href = "https://blog.ny4.dev/"; - "Forgejo".href = "https://git.ny4.dev/nyancat"; - "GitHub".href = "https://github.com/Guanran928"; - "Mastodon".herf = "https://mastodon.ny4.dev/@nyancat"; - "Matrix".href = "https://matrix.to/#/@nyancat:ny4.dev"; }; }; }; @@ -278,6 +287,13 @@ }; }; + services.libreddit = { + enable = true; + package = pkgs.redlib; + address = "127.0.0.1"; + port = 9400; + }; + ### Prevents me from bankrupt # https://fmk.im/p/shutdown-aws/ services.vnstat.enable = true;