summary refs log tree commit diff
path: root/host
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-12-04 12:33:17 +0100
committerRory& <root@rory.gay>2025-12-04 12:36:12 +0100
commit0810a075fa2e4af1630e26ac4041e56b037697d2 (patch)
tree5ad50e5e600a555d29df6f3962babe7eef402173 /host
parentDrop nginxQuic usage (diff)
downloadRory-Open-Architecture-0810a075fa2e4af1630e26ac4041e56b037697d2.tar.xz
nix bincache
Diffstat (limited to 'host')
-rwxr-xr-xhost/Rory-ovh/services/nginx/rory.gay/nix-bincache.nix8
-rw-r--r--host/Rory-ovh/services/nix-bincache.nix10
2 files changed, 18 insertions, 0 deletions
diff --git a/host/Rory-ovh/services/nginx/rory.gay/nix-bincache.nix b/host/Rory-ovh/services/nginx/rory.gay/nix-bincache.nix
new file mode 100755

index 0000000..702f34c --- /dev/null +++ b/host/Rory-ovh/services/nginx/rory.gay/nix-bincache.nix
@@ -0,0 +1,8 @@ +{ config }: +{ + enableACME = !config.virtualisation.isVmVariant; + addSSL = !config.virtualisation.isVmVariant; + locations."/" = { + proxyPass = "http://${config.services.nix-serve.bindAddress}:${toString config.services.nix-serve.port}"; + }; +} diff --git a/host/Rory-ovh/services/nix-bincache.nix b/host/Rory-ovh/services/nix-bincache.nix new file mode 100644
index 0000000..136cab4 --- /dev/null +++ b/host/Rory-ovh/services/nix-bincache.nix
@@ -0,0 +1,10 @@ +{ ... }: + +{ + services.nix-serve = { + enable = true; + package = pkgs.nix-serve-ng; + port = 3642; + bindAddress = "127.0.0.1"; + }; +}