diff --git a/machines/moritz-server/configuration.nix b/machines/moritz-server/configuration.nix index 95216d8..dff9943 100644 --- a/machines/moritz-server/configuration.nix +++ b/machines/moritz-server/configuration.nix @@ -14,6 +14,7 @@ ./website/root ./navidrome.nix ./yottamaster.nix + ./homepage-dashboard.nix inputs.home-manager.nixosModules.default ]; diff --git a/machines/moritz-server/homepage-dashboard.nix b/machines/moritz-server/homepage-dashboard.nix new file mode 100644 index 0000000..946296f --- /dev/null +++ b/machines/moritz-server/homepage-dashboard.nix @@ -0,0 +1,58 @@ +{ + config, + ... +}: { + services.homepage-dashboard = { + enable = true; + allowedHosts = "wg.moritz.place"; + settings = { + title = "Tolle WG"; + description = "Alles was eine WG braucht."; + }; + services = [ + { + Medien = [ + { + Gucken = { + description = "Jellyfin"; + href = "https://jellyfin.moritz.place"; + }; + } + { + Anfragen = { + description = "jellyseerr"; + href = "https://jellyseerr.moritz.place"; + }; + } + ]; + } + { + Sonstiges = [ + { + Putzplan = { + href = "https://putzplan.moritzboeh.me"; + }; + } + { + HomeAssistant = { + href = "https://homeassistant.moritzboeh.me"; + }; + } + { + "Feed (RSS) Reader" = { + description = "Miniflux"; + href = "https://miniflux.moritzboeh.me"; + }; + } + ]; + } + ]; + }; + services.nginx.virtualHosts."wg.moritz.place" = { + forceSSL = true; + useACMEHost = "any.moritz.place"; + locations."/" = { + proxyPass = "http://127.0.0.1:${builtins.toString config.services.homepage-dashboard.listenPort}"; + }; + }; +}