From db7a9b7d5d306ab4214479e3508b62ac7573fc62 Mon Sep 17 00:00:00 2001 From: sajenim Date: Sun, 5 Nov 2023 13:59:27 +0000 Subject: [PATCH] remove docker containers --- nixos/viridian/containers/default.nix | 21 ---------------- .../viridian/containers/homepage/default.nix | 15 ------------ .../viridian/containers/jellyfin/default.nix | 19 --------------- .../viridian/containers/minecraft/default.nix | 18 -------------- nixos/viridian/containers/pihole/default.nix | 24 ------------------- .../viridian/containers/prowlarr/default.nix | 15 ------------ .../containers/qbittorrent/default.nix | 18 -------------- nixos/viridian/containers/radarr/default.nix | 15 ------------ .../viridian/containers/recyclarr/default.nix | 13 ---------- nixos/viridian/containers/sonarr/default.nix | 15 ------------ nixos/viridian/containers/traefik/default.nix | 20 ---------------- 11 files changed, 193 deletions(-) delete mode 100644 nixos/viridian/containers/default.nix delete mode 100644 nixos/viridian/containers/homepage/default.nix delete mode 100644 nixos/viridian/containers/jellyfin/default.nix delete mode 100644 nixos/viridian/containers/minecraft/default.nix delete mode 100644 nixos/viridian/containers/pihole/default.nix delete mode 100644 nixos/viridian/containers/prowlarr/default.nix delete mode 100644 nixos/viridian/containers/qbittorrent/default.nix delete mode 100644 nixos/viridian/containers/radarr/default.nix delete mode 100644 nixos/viridian/containers/recyclarr/default.nix delete mode 100644 nixos/viridian/containers/sonarr/default.nix delete mode 100644 nixos/viridian/containers/traefik/default.nix diff --git a/nixos/viridian/containers/default.nix b/nixos/viridian/containers/default.nix deleted file mode 100644 index 2eb697e..0000000 --- a/nixos/viridian/containers/default.nix +++ /dev/null @@ -1,21 +0,0 @@ -{ ... }: - -{ - # Import our containers. - imports = [ - ./homepage - ./pihole - ./sonarr - ./radarr - ./prowlarr - ./recyclarr - ./qbittorrent - ./minecraft - ./jellyfin - ./traefik - ]; - - # Set docker as container implementation. - virtualisation.oci-containers.backend = "docker"; -} - diff --git a/nixos/viridian/containers/homepage/default.nix b/nixos/viridian/containers/homepage/default.nix deleted file mode 100644 index db1409e..0000000 --- a/nixos/viridian/containers/homepage/default.nix +++ /dev/null @@ -1,15 +0,0 @@ -{ ... }: - -{ - # Homepage - virtualisation.oci-containers.containers."homepage" = { - autoStart = true; - image = "ghcr.io/benphelps/homepage:latest"; - volumes = [ - "/srv/containers/homepage:/app/config" - "/srv/data:/srv/data:ro" - "/var/run/docker.sock:/var/run/docker.sock" # pass local proxy - ]; - extraOptions = ["--network=host"]; - }; -} diff --git a/nixos/viridian/containers/jellyfin/default.nix b/nixos/viridian/containers/jellyfin/default.nix deleted file mode 100644 index df57cd7..0000000 --- a/nixos/viridian/containers/jellyfin/default.nix +++ /dev/null @@ -1,19 +0,0 @@ -{ ... }: - -{ - # Jellyfin - virtualisation.oci-containers.containers."jellyfin" = { - autoStart = true; - image = "jellyfin/jellyfin"; - volumes = [ - "/srv/containers/jellyfin/config:/config" - "/srv/containers/jellyfin/cache:/cache" - "/srv/data/media:/media" - ]; - extraOptions = [ - "--group-add=303" - "--device=/dev/dri/renderD128:/dev/dri/renderD128" - "--network=host" - ]; - }; -} diff --git a/nixos/viridian/containers/minecraft/default.nix b/nixos/viridian/containers/minecraft/default.nix deleted file mode 100644 index fd8cc90..0000000 --- a/nixos/viridian/containers/minecraft/default.nix +++ /dev/null @@ -1,18 +0,0 @@ -{ ... }: - -{ - # Minecraft - virtualisation.oci-containers.containers."minecraft" = { - image = "itzg/minecraft-server"; - ports = [ - "25565:25565" - ]; - volumes = [ - "/srv/containers/minecraft:/data" - ]; - environment = { - EULA = "TRUE"; - }; - autoStart = true; - }; -} diff --git a/nixos/viridian/containers/pihole/default.nix b/nixos/viridian/containers/pihole/default.nix deleted file mode 100644 index 6c3d63f..0000000 --- a/nixos/viridian/containers/pihole/default.nix +++ /dev/null @@ -1,24 +0,0 @@ -{ ... }: - -{ - # Pi-hole - virtualisation.oci-containers.containers."pihole" = { - autoStart = true; - image = "pihole/pihole:latest"; - volumes = [ - "/srv/containers/pihole/etc-pihole:/etc/pihole" - "/srv/containers/pihole/etc-dnsmasq.d:/etc/dnsmasq.d" - "/srv/containers/pihole/secrets:/secrets" - ]; - ports = [ - "192.168.1.102:53:53/tcp" # pihole-FTL (DNS) - "192.168.1.102:53:53/udp" # pihole-FTL (DNS) - "192.168.1.102:8181:80/tcp" # lighttpd (HTTP) - ]; - environment = { - WEBPASSWORD_FILE = "/secrets/admin-password"; - DNSMASQ_LISTENING = "all"; - }; - }; -} - diff --git a/nixos/viridian/containers/prowlarr/default.nix b/nixos/viridian/containers/prowlarr/default.nix deleted file mode 100644 index 660cdf8..0000000 --- a/nixos/viridian/containers/prowlarr/default.nix +++ /dev/null @@ -1,15 +0,0 @@ -{ ... }: - -{ - # Prowlarr - virtualisation.oci-containers.containers."prowlarr" = { - autoStart = true; - image = "cr.hotio.dev/hotio/prowlarr"; - volumes = [ - "/srv/containers/prowlarr:/config" - "/srv/data:/data" - ]; - ports = [ "9696:9696" ]; - extraOptions = ["--network=media-stack"]; - }; -} diff --git a/nixos/viridian/containers/qbittorrent/default.nix b/nixos/viridian/containers/qbittorrent/default.nix deleted file mode 100644 index 3193e55..0000000 --- a/nixos/viridian/containers/qbittorrent/default.nix +++ /dev/null @@ -1,18 +0,0 @@ -{ ... }: - -{ - # Qbittorrent - virtualisation.oci-containers.containers."qbittorrent" = { - autoStart = true; - image = "cr.hotio.dev/hotio/qbittorrent:release"; - volumes = [ - "/srv/containers/qbittorrent:/config" - "/srv/data/torrents:/data/torrents" - ]; - ports = [ - "8383:8080" - "32372:32372" - ]; - extraOptions = ["--network=media-stack"]; - }; -} diff --git a/nixos/viridian/containers/radarr/default.nix b/nixos/viridian/containers/radarr/default.nix deleted file mode 100644 index b4bac37..0000000 --- a/nixos/viridian/containers/radarr/default.nix +++ /dev/null @@ -1,15 +0,0 @@ -{ ... }: - -{ - # Radarr - virtualisation.oci-containers.containers."radarr" = { - autoStart = true; - image = "cr.hotio.dev/hotio/radarr"; - volumes = [ - "/srv/containers/radarr:/config" - "/srv/data:/data" - ]; - ports = [ "7878:7878" ]; - extraOptions = ["--network=media-stack"]; - }; -} diff --git a/nixos/viridian/containers/recyclarr/default.nix b/nixos/viridian/containers/recyclarr/default.nix deleted file mode 100644 index 436643c..0000000 --- a/nixos/viridian/containers/recyclarr/default.nix +++ /dev/null @@ -1,13 +0,0 @@ -{ ... }: - -{ - # Recyclarr - virtualisation.oci-containers.containers."recyclarr" = { - autoStart = true; - image = "ghcr.io/recyclarr/recyclarr:latest"; - volumes = [ - "/srv/containers/recyclarr:/config" - ]; - extraOptions = ["--network=media-stack"]; - }; -} diff --git a/nixos/viridian/containers/sonarr/default.nix b/nixos/viridian/containers/sonarr/default.nix deleted file mode 100644 index d20697b..0000000 --- a/nixos/viridian/containers/sonarr/default.nix +++ /dev/null @@ -1,15 +0,0 @@ -{ ... }: - -{ - # Sonarr - virtualisation.oci-containers.containers."sonarr" = { - autoStart = true; - image = "cr.hotio.dev/hotio/sonarr:v4"; - volumes = [ - "/srv/containers/sonarr:/config" - "/srv/data:/data" - ]; - ports = [ "8989:8989" ]; - extraOptions = ["--network=media-stack"]; - }; -} diff --git a/nixos/viridian/containers/traefik/default.nix b/nixos/viridian/containers/traefik/default.nix deleted file mode 100644 index e7f9b60..0000000 --- a/nixos/viridian/containers/traefik/default.nix +++ /dev/null @@ -1,20 +0,0 @@ -{ ... }: - -{ - # Traefik - virtualisation.oci-containers.containers."traefik" = { - autoStart = true; - image = "traefik:v2.10"; - volumes = [ - "/srv/containers/traefik/traefik.yaml:/etc/traefik/traefik.yaml" - "/srv/containers/traefik/config:/config" - "/srv/containers/traefik/letsencrypt:/letsencrypt" - "/srv/containers/traefik/secrets:/secrets" - ]; - environment = { - CF_API_EMAIL_FILE = "/secrets/cf-api-email"; - CF_API_KEY_FILE = "/secrets/cf-api-key"; - }; - extraOptions = ["--network=host"]; - }; -}