second try, for real
This commit is contained in:
@@ -20,11 +20,6 @@
|
|||||||
options.services.nimh-static = {
|
options.services.nimh-static = {
|
||||||
enable = lib.mkEnableOption "serve nimh via k3s pod.";
|
enable = lib.mkEnableOption "serve nimh via k3s pod.";
|
||||||
|
|
||||||
rootDir = lib.mkOption {
|
|
||||||
type = lib.types.path;
|
|
||||||
description = "Root of the static site";
|
|
||||||
};
|
|
||||||
|
|
||||||
default-nginx = {
|
default-nginx = {
|
||||||
enable = lib.mkEnableOption "Enable nginx reverse proxy.";
|
enable = lib.mkEnableOption "Enable nginx reverse proxy.";
|
||||||
hostname = lib.mkOption {
|
hostname = lib.mkOption {
|
||||||
@@ -40,8 +35,7 @@
|
|||||||
users.groups.nimh = { };
|
users.groups.nimh = { };
|
||||||
users.users.nimh = {
|
users.users.nimh = {
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
createHome = true;
|
createHome = false;
|
||||||
home = "${opts.rootDir}";
|
|
||||||
group = "nimh";
|
group = "nimh";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -86,6 +86,16 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.nimh-static = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
default-nginx = {
|
||||||
|
enable = true;
|
||||||
|
hostname = "nimh.roypository.com";
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
# ================================ #
|
# ================================ #
|
||||||
# K3S SERVICE #
|
# K3S SERVICE #
|
||||||
# ================================ #
|
# ================================ #
|
||||||
|
|||||||
@@ -28,6 +28,7 @@
|
|||||||
# This is a path to the services I've declared.
|
# This is a path to the services I've declared.
|
||||||
# It just happens to be stored in the same repository (relative),
|
# It just happens to be stored in the same repository (relative),
|
||||||
# but could well be a separate repository
|
# but could well be a separate repository
|
||||||
|
nimh-static.url = "path:../homelab-services/nimh-static";
|
||||||
minio-service.url = "path:../homelab-services/minio-service";
|
minio-service.url = "path:../homelab-services/minio-service";
|
||||||
mc-service.url = "path:../homelab-services/mc-service";
|
mc-service.url = "path:../homelab-services/mc-service";
|
||||||
postgresql-db.url = "path:../homelab-services/postgresql-db";
|
postgresql-db.url = "path:../homelab-services/postgresql-db";
|
||||||
@@ -44,6 +45,7 @@
|
|||||||
quasiSecrets,
|
quasiSecrets,
|
||||||
impermanence,
|
impermanence,
|
||||||
firefox-addons,
|
firefox-addons,
|
||||||
|
nimh-static,
|
||||||
minio-service,
|
minio-service,
|
||||||
mc-service,
|
mc-service,
|
||||||
postgresql-db,
|
postgresql-db,
|
||||||
@@ -77,6 +79,7 @@
|
|||||||
quasiSecrets.nixosModules.ipAddrs
|
quasiSecrets.nixosModules.ipAddrs
|
||||||
quasiSecrets.nixosModules.serviceList
|
quasiSecrets.nixosModules.serviceList
|
||||||
impermanence.nixosModules.impermanence
|
impermanence.nixosModules.impermanence
|
||||||
|
nimh-static.nixosModules.nimh-static
|
||||||
minio-service.nixosModules.minio-service
|
minio-service.nixosModules.minio-service
|
||||||
mc-service.nixosModules.mc-service
|
mc-service.nixosModules.mc-service
|
||||||
postgresql-db.nixosModules.postgresql-db
|
postgresql-db.nixosModules.postgresql-db
|
||||||
|
|||||||
Reference in New Issue
Block a user