diff --git a/cluster/services/object-storage/default.nix b/cluster/services/object-storage/default.nix new file mode 100644 index 0000000..c08ff6c --- /dev/null +++ b/cluster/services/object-storage/default.nix @@ -0,0 +1,13 @@ +{ tools, ... }: + +{ + services.object-storage = { + nodes.host = [ "VEGAS" ]; + nixos.host = ./host.nix; + }; + + monitoring.blackbox.targets.object-storage = { + address = "https://object-storage.${tools.meta.domain}/minio/health/live"; + module = "https2xx"; + }; +} diff --git a/hosts/VEGAS/services/object-storage/default.nix b/cluster/services/object-storage/host.nix similarity index 97% rename from hosts/VEGAS/services/object-storage/default.nix rename to cluster/services/object-storage/host.nix index 55f6e90..006215e 100644 --- a/hosts/VEGAS/services/object-storage/default.nix +++ b/cluster/services/object-storage/host.nix @@ -22,7 +22,7 @@ in }; age.secrets.minio-root-credentials = { - file = ../../../../secrets/minio-root-credentials.age; + file = ../../../secrets/minio-root-credentials.age; owner = "root"; group = "root"; mode = "0400"; diff --git a/hosts/VEGAS/system.nix b/hosts/VEGAS/system.nix index 9fb0b0e..001b835 100644 --- a/hosts/VEGAS/system.nix +++ b/hosts/VEGAS/system.nix @@ -27,7 +27,6 @@ ./services/minecraft ./services/nix/binary-cache.nix ./services/nix/nar-serve.nix - ./services/object-storage ./services/reflex ./services/sso ./services/uptime-kuma