Create 6 new NixOS modules to reduce duplication across system configs: - hardware/wooting: Wooting keyboard udev rules and Bluetooth compat - services/nginx-base: Common nginx server settings - services/acme-base: ACME certificate defaults - services/xremap: Key remapping with sensible defaults - system/no-sleep: Disable sleep/suspend/hibernate targets - system/kernel-tweaks: PM freeze timeout and zram configuration Update system configuration files to use these new modules. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
36 lines
937 B
Nix
36 lines
937 B
Nix
{
|
|
config,
|
|
...
|
|
}:
|
|
{
|
|
services.nginx.virtualHosts = {
|
|
"openwebui.hoyer.world" = {
|
|
enableACME = false;
|
|
useACMEHost = "internal.hoyer.world";
|
|
forceSSL = true;
|
|
locations."/" = {
|
|
proxyPass = "http://127.0.0.1:${toString config.services.open-webui.port}";
|
|
proxyWebsockets = true;
|
|
};
|
|
};
|
|
"syncthing.hoyer.world" = {
|
|
enableACME = false;
|
|
useACMEHost = "internal.hoyer.world";
|
|
forceSSL = true;
|
|
locations."/" = {
|
|
proxyPass = "http://127.0.0.1:8384";
|
|
recommendedProxySettings = true;
|
|
};
|
|
};
|
|
"home.hoyer.world" = {
|
|
enableACME = false;
|
|
useACMEHost = "internal.hoyer.world";
|
|
forceSSL = true;
|
|
locations."/" = {
|
|
proxyPass = "http://192.168.178.49:8123";
|
|
recommendedProxySettings = true;
|
|
proxyWebsockets = true;
|
|
};
|
|
};
|
|
};
|
|
}
|