Rename baseDomain to domain
All checks were successful
/ check (push) Successful in 1m15s

This commit is contained in:
Oliver Davies 2025-05-03 01:13:51 +01:00
parent f70d9c51e3
commit 92ded26806
12 changed files with 20 additions and 20 deletions

View file

@ -6,7 +6,7 @@
features.homelab = {
enable = true;
baseDomain = "oliverdavies.uk";
domain = "oliverdavies.uk";
services = {
audiobookshelf.enable = true;

View file

@ -12,7 +12,7 @@ in
enable = mkEnableOption "Enable ${service}";
url = mkOption {
default = "audiobookshelf.${homelab.baseDomain}";
default = "audiobookshelf.${homelab.domain}";
type = types.str;
};
@ -43,7 +43,7 @@ in
nginx.virtualHosts.${cfg.url} = {
forceSSL = true;
useACMEHost = homelab.baseDomain;
useACMEHost = homelab.domain;
locations."/" = {
proxyPass = "http://localhost:${toString config.services.${service}.port}";

View file

@ -22,7 +22,7 @@ in
};
url = mkOption {
default = "${service}.${homelab.baseDomain}";
default = "${service}.${homelab.domain}";
type = types.str;
};
@ -318,7 +318,7 @@ in
services.nginx.virtualHosts."${cfg.url}" = {
forceSSL = true;
useACMEHost = homelab.baseDomain;
useACMEHost = homelab.domain;
locations."/" = {
proxyPass = "http://localhost:${toString cfg.port}";

View file

@ -6,7 +6,7 @@ with lib;
options.features.homelab = {
enable = mkEnableOption "Enable homelab services and configuration";
baseDomain = mkOption {
domain = mkOption {
description = "The base domain to use for this homelab.";
type = types.str;
};

View file

@ -12,7 +12,7 @@ in
enable = mkEnableOption "Enable ${service}";
url = mkOption {
default = "code.${homelab.baseDomain}";
default = "code.${homelab.domain}";
type = types.str;
};

View file

@ -17,7 +17,7 @@ in
enable = mkEnableOption "Enable ${service}";
url = mkOption {
default = "photos.${homelab.baseDomain}";
default = "photos.${homelab.domain}";
type = types.str;
};
@ -52,7 +52,7 @@ in
nginx.virtualHosts."${cfg.url}" = {
forceSSL = true;
useACMEHost = homelab.baseDomain;
useACMEHost = homelab.domain;
locations."/" = {
proxyPass = "http://localhost:${toString config.services.immich.port}";

View file

@ -12,7 +12,7 @@ in
enable = mkEnableOption "Enable ${service}";
url = mkOption {
default = "${service}.${homelab.baseDomain}";
default = "${service}.${homelab.domain}";
type = types.str;
};
@ -49,7 +49,7 @@ in
nginx.virtualHosts."${cfg.url}" = {
forceSSL = true;
useACMEHost = homelab.baseDomain;
useACMEHost = homelab.domain;
locations."/" = {
proxyPass = "http://localhost:8096";

View file

@ -1,5 +1,5 @@
let
baseDomain = "oliverdavies.uk";
domain = "oliverdavies.uk";
ports = import ./ports.nix;
@ -12,7 +12,7 @@ let
inherit root;
port = ports.${name};
url = "${name}.${baseDomain}";
url = "${name}.${domain}";
}
// overrides;

View file

@ -12,7 +12,7 @@ in
enable = mkEnableOption "Enable ${service}";
url = mkOption {
default = "${service}.${homelab.baseDomain}";
default = "${service}.${homelab.domain}";
type = types.str;
};
@ -51,7 +51,7 @@ in
nginx.virtualHosts."${cfg.url}" = {
forceSSL = true;
useACMEHost = homelab.baseDomain;
useACMEHost = homelab.domain;
locations."/" = {
proxyPass = "http://localhost:${toString config.services.${service}.port}";

View file

@ -23,7 +23,7 @@ in
};
url = mkOption {
default = "${config.networking.hostName}.${homelab.baseDomain}";
default = "${config.networking.hostName}.${homelab.domain}";
type = types.str;
};
};
@ -64,7 +64,7 @@ in
nginx.virtualHosts.${cfg.url} = {
forceSSL = true;
useACMEHost = homelab.baseDomain;
useACMEHost = homelab.domain;
locations."/".proxyPass =
"http://localhost:${toString config.services.homepage-dashboard.listenPort}";

View file

@ -12,7 +12,7 @@ in
enable = mkEnableOption "Enable ${service}";
url = mkOption {
default = "uptime.${homelab.baseDomain}";
default = "uptime.${homelab.domain}";
type = types.str;
};
@ -43,7 +43,7 @@ in
nginx.virtualHosts.${cfg.url} = {
forceSSL = true;
useACMEHost = homelab.baseDomain;
useACMEHost = homelab.domain;
locations."/" = {
proxyPass = "http://localhost:${toString config.services.${service}.settings.PORT}";

View file

@ -17,7 +17,7 @@ in
enable = mkEnableOption "Enable ${service}";
url = mkOption {
default = "${service}.${homelab.baseDomain}";
default = "${service}.${homelab.domain}";
type = types.str;
};