Add nix-serve to server

This commit is contained in:
Evie Litherland-Smith 2024-03-02 16:32:38 +00:00
parent 30d6ad9330
commit 4f942e7d8d
2 changed files with 9 additions and 0 deletions

View file

@ -161,6 +161,7 @@
systemConfig {
inherit hostName user system;
systemModules = [
./services/nix-serve.nix
./services/caddy.nix
./services/gitea.nix
./services/grafana.nix

8
services/nix-serve.nix Normal file
View file

@ -0,0 +1,8 @@
{config, ...}: {
imports = [./caddy.nix];
services.nix-serve = {
enable = true;
openFirewall = true;
};
services.caddy.virtualHosts."nix.xenia.me.uk".extraConfig = "reverse_proxy http://localhost:${config.services.nix-serve.port}";
}