second try, for real
This commit is contained in:
@@ -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";
|
||||
};
|
||||
|
||||
|
||||
@@ -86,6 +86,16 @@
|
||||
};
|
||||
};
|
||||
|
||||
services.nimh-static = {
|
||||
enable = true;
|
||||
|
||||
default-nginx = {
|
||||
enable = true;
|
||||
hostname = "nimh.roypository.com";
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
# ================================ #
|
||||
# K3S SERVICE #
|
||||
# ================================ #
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user