From 0fde93d646523a2a1e05f161c0849d34db1d75d2 Mon Sep 17 00:00:00 2001 From: m3tam3re Date: Tue, 19 Nov 2024 18:59:45 +0100 Subject: [PATCH] +homarr --- flake.nix | 2 +- hosts/m3-helios/services/containers/default.nix | 1 + hosts/m3-helios/services/containers/homarr.nix | 11 +++++++++++ hosts/m3-helios/services/traefik.nix | 11 +++++++++++ 4 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 hosts/m3-helios/services/containers/homarr.nix diff --git a/flake.nix b/flake.nix index f744d7a..ff539cf 100644 --- a/flake.nix +++ b/flake.nix @@ -85,7 +85,7 @@ inherit inputs outputs; hostname = "m3-kratos"; }; - modules = [./home/m3tam3re/m3tam3re.nix]; + modules = [./home/m3tam3re/m3tam3re-kratos.nix]; }; }; }; diff --git a/hosts/m3-helios/services/containers/default.nix b/hosts/m3-helios/services/containers/default.nix index f7e9be4..6e27748 100644 --- a/hosts/m3-helios/services/containers/default.nix +++ b/hosts/m3-helios/services/containers/default.nix @@ -1,4 +1,5 @@ { imports = [ + ./homarr.nix ]; } diff --git a/hosts/m3-helios/services/containers/homarr.nix b/hosts/m3-helios/services/containers/homarr.nix new file mode 100644 index 0000000..ee5c4a0 --- /dev/null +++ b/hosts/m3-helios/services/containers/homarr.nix @@ -0,0 +1,11 @@ +{ + virtualisation.oci-containers.containers."homarr" = { + image = "ghcr.io/ajnart/homarr:latest"; + ports = ["7575:7575"]; + volumes = [ + "homarr-configs:/app/public/config" + "homarr-icons:/app/public/icons" + "homarr-data:/data" + ]; + }; +} diff --git a/hosts/m3-helios/services/traefik.nix b/hosts/m3-helios/services/traefik.nix index ed0cbe6..0e86322 100644 --- a/hosts/m3-helios/services/traefik.nix +++ b/hosts/m3-helios/services/traefik.nix @@ -73,6 +73,9 @@ ag.loadBalancer.servers = [ {url = "http://192.168.178.210:3000";} ]; + homarr.loadBalancer.servers = [ + {url = "http://192.168.178.210:7575";} + ]; }; # Skip verification for PVE servers serversTransports = { @@ -106,6 +109,14 @@ certResolver = "godaddy"; }; }; + homarr = { + rule = "Host(`dash.l.m3tam3re.com`)"; + service = "homarr"; + entrypoints = ["websecure"]; + tls = { + certResolver = "godaddy"; + }; + }; }; }; };