nix-serve: refactor

This commit is contained in:
2025-03-16 12:45:25 +00:00
parent ee02393220
commit 0d8b1e7a37
2 changed files with 23 additions and 17 deletions

View File

@ -0,0 +1,22 @@
{
config,
...
}:
{
services.nix-serve = {
enable = true;
secretKeyFile = "/var/cache-priv-key.pem";
};
services.nginx = {
enable = true;
recommendedProxySettings = true;
virtualHosts = {
"odyssey.mesh.vimium.net" = {
locations."/".proxyPass =
"http://${config.services.nix-serve.bindAddress}:${toString config.services.nix-serve.port}";
};
};
};
}