004-vps-migration #5

Merged
jawz merged 47 commits from 004-vps-migration into main 2026-02-06 09:20:18 -06:00
4 changed files with 8 additions and 14 deletions
Showing only changes of commit dce2142794 - Show all commits

View File

@@ -3,10 +3,10 @@ let
inherit (inputs.self.lib) inherit (inputs.self.lib)
enableList enableList
mkEnabled mkEnabled
mkEnabledProxy
mkEnabledWithUsers mkEnabledWithUsers
; ;
mkEnabledProxyIp = inputs.self.lib.mkEnabledProxyIp config.my.ips.wg-server; wgServerIp = config.my.ips.wg-server;
mkEnabledProxyIp = inputs.self.lib.mkEnabledProxyIp wgServerIp;
in in
{ {
enableProxy = true; enableProxy = true;
@@ -33,9 +33,11 @@ in
}; };
nextcloud = { nextcloud = {
enableProxy = true; enableProxy = true;
ip = wgServerIp;
port = 8081;
}; };
} }
// enableList mkEnabledProxy [ // enableList mkEnabledProxyIp [
"bazarr" "bazarr"
"collabora" "collabora"
"gitea" "gitea"
@@ -53,8 +55,6 @@ in
"radarr" "radarr"
"sonarr" "sonarr"
"yamtrack" "yamtrack"
]
// enableList mkEnabledProxyIp [
"audiobookshelf" "audiobookshelf"
"isso" "isso"
"keycloak" "keycloak"

View File

@@ -74,7 +74,7 @@ in
}; };
mainServer = lib.mkOption { mainServer = lib.mkOption {
type = lib.types.str; type = lib.types.str;
default = "vps"; default = "server";
description = "The hostname of the main server."; description = "The hostname of the main server.";
}; };
postgresSocket = lib.mkOption { postgresSocket = lib.mkOption {

View File

@@ -261,7 +261,7 @@ in
collabora = lib.mkIf cfgC.enable { collabora = lib.mkIf cfgC.enable {
autoStart = true; autoStart = true;
image = "collabora/code:latest"; image = "collabora/code:latest";
ports = [ "9980:9980" ]; ports = [ "${toString cfgC.port}:${toString cfgC.port}" ];
environment = { environment = {
TZ = config.my.timeZone; TZ = config.my.timeZone;
domain = cfg.host; domain = cfg.host;

View File

@@ -196,16 +196,10 @@ in
inherit ip; inherit ip;
}; };
}; };
mkEnabledProxy = name: {
inherit name;
value = {
enableProxy = true;
};
};
mkEnabledProxyIp = ip: name: { mkEnabledProxyIp = ip: name: {
inherit name; inherit name;
value = { value = {
enable = true; enableProxy = true;
inherit ip; inherit ip;
}; };
}; };