From 0949fbc9c724c53468b8f3a683db838beb25e901 Mon Sep 17 00:00:00 2001 From: sajenim Date: Mon, 30 Oct 2023 16:39:05 +0800 Subject: [PATCH] setup new host + migrate containers to it --- flake.nix | 8 ++++++++ nixos/lavender/containers/plex/default.nix | 14 -------------- .../{lavender => viridian}/containers/default.nix | 1 - .../containers/homepage/default.nix | 0 .../containers/minecraft/default.nix | 0 .../containers/pihole/default.nix | 0 .../containers/prowlarr/default.nix | 0 .../containers/qbittorrent/default.nix | 0 .../containers/radarr/default.nix | 0 .../containers/recyclarr/default.nix | 0 .../containers/sonarr/default.nix | 0 .../containers/traefik/default.nix | 0 12 files changed, 8 insertions(+), 15 deletions(-) delete mode 100644 nixos/lavender/containers/plex/default.nix rename nixos/{lavender => viridian}/containers/default.nix (96%) rename nixos/{lavender => viridian}/containers/homepage/default.nix (100%) rename nixos/{lavender => viridian}/containers/minecraft/default.nix (100%) rename nixos/{lavender => viridian}/containers/pihole/default.nix (100%) rename nixos/{lavender => viridian}/containers/prowlarr/default.nix (100%) rename nixos/{lavender => viridian}/containers/qbittorrent/default.nix (100%) rename nixos/{lavender => viridian}/containers/radarr/default.nix (100%) rename nixos/{lavender => viridian}/containers/recyclarr/default.nix (100%) rename nixos/{lavender => viridian}/containers/sonarr/default.nix (100%) rename nixos/{lavender => viridian}/containers/traefik/default.nix (100%) diff --git a/flake.nix b/flake.nix index b9dc25d..664c633 100644 --- a/flake.nix +++ b/flake.nix @@ -64,6 +64,14 @@ ]; }; + viridian = nixpkgs.lib.nixosSystem { + specialArgs = { inherit inputs outputs; }; + modules = [ + # > Our main nixos configuration file < + ./nixos/viridian/configuration.nix + ]; + }; + lavender = nixpkgs.lib.nixosSystem { specialArgs = { inherit inputs outputs; }; modules = [ diff --git a/nixos/lavender/containers/plex/default.nix b/nixos/lavender/containers/plex/default.nix deleted file mode 100644 index acaa888..0000000 --- a/nixos/lavender/containers/plex/default.nix +++ /dev/null @@ -1,14 +0,0 @@ -{ ... }: - -{ - # Plex - virtualisation.oci-containers.containers."plex" = { - autoStart = true; - image = "lscr.io/linuxserver/plex:latest"; - volumes = [ - "/srv/containers/plex:/config" - "/srv/data/media:/data/media:ro" - ]; - extraOptions = ["--network=host"]; - }; -} diff --git a/nixos/lavender/containers/default.nix b/nixos/viridian/containers/default.nix similarity index 96% rename from nixos/lavender/containers/default.nix rename to nixos/viridian/containers/default.nix index 06578d0..6bee7e3 100644 --- a/nixos/lavender/containers/default.nix +++ b/nixos/viridian/containers/default.nix @@ -5,7 +5,6 @@ imports = [ ./homepage ./pihole - ./plex ./sonarr ./radarr ./prowlarr diff --git a/nixos/lavender/containers/homepage/default.nix b/nixos/viridian/containers/homepage/default.nix similarity index 100% rename from nixos/lavender/containers/homepage/default.nix rename to nixos/viridian/containers/homepage/default.nix diff --git a/nixos/lavender/containers/minecraft/default.nix b/nixos/viridian/containers/minecraft/default.nix similarity index 100% rename from nixos/lavender/containers/minecraft/default.nix rename to nixos/viridian/containers/minecraft/default.nix diff --git a/nixos/lavender/containers/pihole/default.nix b/nixos/viridian/containers/pihole/default.nix similarity index 100% rename from nixos/lavender/containers/pihole/default.nix rename to nixos/viridian/containers/pihole/default.nix diff --git a/nixos/lavender/containers/prowlarr/default.nix b/nixos/viridian/containers/prowlarr/default.nix similarity index 100% rename from nixos/lavender/containers/prowlarr/default.nix rename to nixos/viridian/containers/prowlarr/default.nix diff --git a/nixos/lavender/containers/qbittorrent/default.nix b/nixos/viridian/containers/qbittorrent/default.nix similarity index 100% rename from nixos/lavender/containers/qbittorrent/default.nix rename to nixos/viridian/containers/qbittorrent/default.nix diff --git a/nixos/lavender/containers/radarr/default.nix b/nixos/viridian/containers/radarr/default.nix similarity index 100% rename from nixos/lavender/containers/radarr/default.nix rename to nixos/viridian/containers/radarr/default.nix diff --git a/nixos/lavender/containers/recyclarr/default.nix b/nixos/viridian/containers/recyclarr/default.nix similarity index 100% rename from nixos/lavender/containers/recyclarr/default.nix rename to nixos/viridian/containers/recyclarr/default.nix diff --git a/nixos/lavender/containers/sonarr/default.nix b/nixos/viridian/containers/sonarr/default.nix similarity index 100% rename from nixos/lavender/containers/sonarr/default.nix rename to nixos/viridian/containers/sonarr/default.nix diff --git a/nixos/lavender/containers/traefik/default.nix b/nixos/viridian/containers/traefik/default.nix similarity index 100% rename from nixos/lavender/containers/traefik/default.nix rename to nixos/viridian/containers/traefik/default.nix