From 94ad1ac0f047e58cba80a431f7b340bce9801553 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Tue, 29 Nov 2022 18:46:34 +0100 Subject: [PATCH] remove gitea/homer/jellyfin static services --- nixos/modules/webapps/gitea.nix | 22 ---------------- nixos/modules/webapps/homer.nix | 42 ------------------------------ nixos/modules/webapps/jellyfin.nix | 21 --------------- 3 files changed, 85 deletions(-) delete mode 100644 nixos/modules/webapps/gitea.nix delete mode 100644 nixos/modules/webapps/homer.nix delete mode 100644 nixos/modules/webapps/jellyfin.nix diff --git a/nixos/modules/webapps/gitea.nix b/nixos/modules/webapps/gitea.nix deleted file mode 100644 index 09cbbd8..0000000 --- a/nixos/modules/webapps/gitea.nix +++ /dev/null @@ -1,22 +0,0 @@ -{ config, pkgs, ... }: -{ - services.gitea = { - enable = true; - cookieSecure = true; - httpPort = 3001; - rootUrl = "https://git.buehler.rocks/"; - log.level = "Warn"; - disableRegistration = true; - settings = { - ui.DEFAULT_THEME = "arc-green"; - }; - }; - webapps.apps.gitea = { - dashboard = { - name = "Git"; - category = "app"; - icon = "git"; - link = "https://git.buehler.rocks"; - }; - }; -} diff --git a/nixos/modules/webapps/homer.nix b/nixos/modules/webapps/homer.nix deleted file mode 100644 index 845cce4..0000000 --- a/nixos/modules/webapps/homer.nix +++ /dev/null @@ -1,42 +0,0 @@ -{ config, lib, pkgs, ... }: - -with lib; - -let - homeConfig = { - title = "Dashboard"; - header = false; - footer = false; - connectivityCheck = true; - colums = "auto"; - services = config.lib.webapps.homerServices; - }; -in -{ - networking.firewall.allowedTCPPorts = [ - 80 - 443 - ]; - services.nginx = { - enable = true; - #virtualHosts."dashboard.rocks" = { - virtualHosts."_" = { - default = true; - locations = { - "/" = { - root = homer; - }; - "=/assets/config.yml" = { - alias = pkgs.writeText "homerConfig.yml" (builtins.toJSON homeConfig); - }; - }; - }; - }; - webapps = { - dashboardCategories = [ - { name = "Applications"; tag = "app"; } - { name = "Media-Management"; tag = "manag"; } - { name = "Infrastructure"; tag = "infra"; } - ]; - }; -} diff --git a/nixos/modules/webapps/jellyfin.nix b/nixos/modules/webapps/jellyfin.nix deleted file mode 100644 index 178d359..0000000 --- a/nixos/modules/webapps/jellyfin.nix +++ /dev/null @@ -1,21 +0,0 @@ -{ config, pkgs, ... }: -{ - services.jellyfin = { - enable = true; - openFirewall = true; - }; - - systemd.services.jellyfin = { - after = [ "network-online.target" ]; - #unitConfig.RequiresMountsFor = [ "/storage" ]; - }; - - webapps.apps.jellyfin = { - dashboard = { - name = "Jellyfin"; - category = "app"; - icon = "film"; - link = "http://192.168.178.60:8096"; - }; - }; -}