1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
{ config, lib, pkgs, ... }: with lib; { environment.systemPackages = [ pkgs.go ]; krebs.go = { enable = true; }; krebs.nginx = { enable = true; servers.go = { locations = [ (nameValuePair "/" '' proxy_set_header Host go; proxy_pass http://localhost:1337; '') ]; server-names = [ "go" "go.retiolum" ]; }; }; }