From 75cf58db8aef9abe06fafe62b7272acf45b45a75 Mon Sep 17 00:00:00 2001 From: Roy Dumblauskas Date: Wed, 27 May 2026 00:42:53 -0500 Subject: [PATCH] second try, for real --- homelab-services/nimh-static/flake.nix | 8 +------- nixos/configuration.nix | 10 ++++++++++ nixos/flake.nix | 3 +++ 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/homelab-services/nimh-static/flake.nix b/homelab-services/nimh-static/flake.nix index 095048a..f7e9b38 100644 --- a/homelab-services/nimh-static/flake.nix +++ b/homelab-services/nimh-static/flake.nix @@ -20,11 +20,6 @@ options.services.nimh-static = { enable = lib.mkEnableOption "serve nimh via k3s pod."; - rootDir = lib.mkOption { - type = lib.types.path; - description = "Root of the static site"; - }; - default-nginx = { enable = lib.mkEnableOption "Enable nginx reverse proxy."; hostname = lib.mkOption { @@ -40,8 +35,7 @@ users.groups.nimh = { }; users.users.nimh = { isSystemUser = true; - createHome = true; - home = "${opts.rootDir}"; + createHome = false; group = "nimh"; }; diff --git a/nixos/configuration.nix b/nixos/configuration.nix index f0e6a23..f683848 100755 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -86,6 +86,16 @@ }; }; + services.nimh-static = { + enable = true; + + default-nginx = { + enable = true; + hostname = "nimh.roypository.com"; + }; + + }; + # ================================ # # K3S SERVICE # # ================================ # diff --git a/nixos/flake.nix b/nixos/flake.nix index fa1a3b8..36711f8 100755 --- a/nixos/flake.nix +++ b/nixos/flake.nix @@ -28,6 +28,7 @@ # This is a path to the services I've declared. # It just happens to be stored in the same repository (relative), # but could well be a separate repository + nimh-static.url = "path:../homelab-services/nimh-static"; minio-service.url = "path:../homelab-services/minio-service"; mc-service.url = "path:../homelab-services/mc-service"; postgresql-db.url = "path:../homelab-services/postgresql-db"; @@ -44,6 +45,7 @@ quasiSecrets, impermanence, firefox-addons, + nimh-static, minio-service, mc-service, postgresql-db, @@ -77,6 +79,7 @@ quasiSecrets.nixosModules.ipAddrs quasiSecrets.nixosModules.serviceList impermanence.nixosModules.impermanence + nimh-static.nixosModules.nimh-static minio-service.nixosModules.minio-service mc-service.nixosModules.mc-service postgresql-db.nixosModules.postgresql-db