summaryrefslogtreecommitdiffstats
path: root/lass/2configs/go.nix
blob: f4c2ac2891f049ec67a5f2c302c0b8bbc893d8e6 (plain)
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"
      ];
    };
  };
}