nixos/system/services/nix-serve.nix

11 lines
306 B
Nix
Raw Permalink Normal View History

2024-07-30 15:06:34 +01:00
{ config, ... }:
{
imports = [ ./caddy.nix ];
2024-03-02 16:32:38 +00:00
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
}