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