nixos/services/nix-serve.nix

10 lines
302 B
Nix
Raw Normal View History

2024-03-02 16:32:38 +00:00
{config, ...}: {
imports = [./caddy.nix];
services.nix-serve = {
enable = true;
openFirewall = true;
secretKeyFile = "/root/nix-serve.key";
2024-03-02 16:32:38 +00:00
};
services.caddy.virtualHosts."nix.xenia.me.uk".extraConfig = "reverse_proxy http://localhost:${toString config.services.nix-serve.port}";
2024-03-02 16:32:38 +00:00
}