From f6980cfa9c72a417024c10f1950a1431232f56a2 Mon Sep 17 00:00:00 2001 From: cy Date: Sun, 29 Dec 2024 01:09:54 -0500 Subject: [PATCH] rm ghost from chunk --- hosts/chunk/default.nix | 1 - hosts/chunk/ghost.nix | 52 ----------------------------------------- 2 files changed, 53 deletions(-) delete mode 100644 hosts/chunk/ghost.nix diff --git a/hosts/chunk/default.nix b/hosts/chunk/default.nix index 0609ef3..f04fe53 100644 --- a/hosts/chunk/default.nix +++ b/hosts/chunk/default.nix @@ -23,7 +23,6 @@ ./wireguard.nix ./grafana.nix ./tor.nix - ./ghost.nix ./conduit.nix ./immich.nix ./element.nix diff --git a/hosts/chunk/ghost.nix b/hosts/chunk/ghost.nix deleted file mode 100644 index b190cd0..0000000 --- a/hosts/chunk/ghost.nix +++ /dev/null @@ -1,52 +0,0 @@ -{ - pkgs, - config, - ... -}: -{ - virtualisation.oci-containers.containers.ghost = { - image = "ghost:5-alpine"; - autoStart = true; - ports = [ "127.0.0.1:8084:2368" ]; - pull = "newer"; - environment = { - database__client = "mysql"; - database__connection__host = "ghost-db"; - database__connection__user = "root"; - database__connection__password = "example"; - database__connection__databse = "ghost"; - url = "https://cything.io"; - NODE_ENV = "production"; - }; - volumes = [ - "/opt/ghost/data:/var/lib/ghost/content" - ]; - networks = [ "ghost-net" ]; - dependsOn = [ "ghost-db" ]; - }; - - virtualisation.oci-containers.containers.ghost-db = { - image = "mysql:8.0"; - autoStart = true; - pull = "newer"; - environment = { - MYSQL_ROOT_PASSWORD = "example"; - }; - volumes = [ - "/opt/ghost/db:/var/lib/mysql" - ]; - networks = [ "ghost-net" ]; - }; - - systemd.services.create-ghost-net = { - serviceConfig.Type = "oneshot"; - wantedBy = with config.virtualisation.oci-containers; [ - "${backend}-ghost.service" - "${backend}-ghost-db.service" - ]; - script = '' - ${pkgs.podman}/bin/podman network exists ghost-net || \ - ${pkgs.podman}/bin/podman network create ghost-net - ''; - }; -}