diff --git a/homelab/default.nix b/homelab/default.nix deleted file mode 100644 index 3693bd6..0000000 --- a/homelab/default.nix +++ /dev/null @@ -1,6 +0,0 @@ -{...}: { - imports = [ - # ./media_server - ./ghostfolio.nix - ]; -} diff --git a/homelab/ghostfolio.nix b/homelab/ghostfolio.nix deleted file mode 100644 index 6f0d151..0000000 --- a/homelab/ghostfolio.nix +++ /dev/null @@ -1,44 +0,0 @@ -{ - config, - lib, - ... -}: let - secrets = config.spacestation-secrets.lesser; - ghostfolioSecrets = secrets.guz.services.ghostfolio; -in { - imports = []; - - services.ghostfolio.enable = true; - # virtualisation.oci-containers.containers = { - # ghostfolio = { - # image = "ghostfolio/ghostfolio:latest"; - # autoStart = true; - # environmentFiles = [ - # (/. + config.sops.secrets."ghostfolio/env".path) - # ]; - # dependsOn = [ - # "ghostfolio-postgres" - # "ghostfolio-redis" - # ]; - # ports = [ - # "${toString ghostfolioSecrets.port}:3333" - # ]; - # }; - # ghostfolio-postgres = { - # image = "docker.io/library/postgres:15"; - # environmentFiles = [ - # (/. + config.sops.secrets."ghostfolio/env".path) - # ]; - # volumes = [ - # "/var/lib/ghostfolio/postgresql/data:/var/lib/postgresql/data" - # ]; - # }; - # ghostfolio-redis = { - # image = "docker.io/library/redis:alpine"; - # environmentFiles = [ - # (/. + config.sops.secrets."ghostfolio/env".path) - # ]; - # cmd = ["redis-server" "--requirepass" "$REDIS_PASSWORD"]; - # }; - # }; -} diff --git a/homelab/media_server/default.nix b/homelab/media_server/default.nix deleted file mode 100644 index 56ff8e2..0000000 --- a/homelab/media_server/default.nix +++ /dev/null @@ -1,5 +0,0 @@ -{...}: { - imports = [ - ./jellyfin.nix - ]; -} diff --git a/homelab/media_server/jellyfin.nix b/homelab/media_server/jellyfin.nix deleted file mode 100644 index 911ac30..0000000 --- a/homelab/media_server/jellyfin.nix +++ /dev/null @@ -1,86 +0,0 @@ -{ - config, - inputs, - lib, - pkgs, - ... -}: let - secrets = config.spacestation-secrets.lesser; - qbittorrentSecrets = secrets.guz.services.qbittorrent; -in { - imports = []; - - environment.systemPackages = with pkgs; [ - jellyfin - jellyfin-web - jellyfin-ffmpeg - qbittorrent-nox - ]; - - services.jellyfin = { - enable = true; - }; - - services.jellyseerr = { - enable = false; - port = 8097; - openFirewall = true; - }; - - services.sonarr = { - enable = false; - }; - - services.radarr = { - enable = false; - }; - - services.bazarr = { - enable = false; - }; - - nixpkgs.overlays = [ - (final: prev: { - qbittorrent = prev.qbittorrent.override {guiSupport = false;}; - }) - ]; - - qt.enable = true; - - systemd.services.qbittorrent = let - dataDir = "/var/lib/qbittorrent"; - configDir = "${dataDir}/.config"; - in { - after = ["network.target"]; - description = "qBittorrent Daemon"; - wantedBy = ["multi-user.target"]; - path = [pkgs.qbittorrent-nox]; - serviceConfig = { - ExecStart = '' - ${pkgs.qbittorrent-nox}/bin/qbittorrent-nox \ - --profile=${configDir} \ - --webui-port=${toString qbittorrentSecrets.port} - ''; - Restart = "on-success"; - User = "qbittorrent"; - Group = "qbittorrent"; - UMask = "0002"; - LimitNOFILE = 4096; - }; - environment = { - QBT_PROFILE = "/var/lib/qbittorrent"; - QBT_WEBUI_PORT = toString qbittorrentSecrets.port; - }; - }; - - users = { - users."qbittorrent" = { - group = "qbittorrent"; - home = "/var/lib/qbittorrent"; - createHome = true; - description = "qBittorrent Daemon user"; - isSystemUser = true; - }; - groups."qbittorrent" = {gid = null;}; - }; -}