stockholm/lass/2configs/go.nix
2016-02-14 16:43:44 +01:00

27 lines
431 B
Nix

{ config, lib, pkgs, ... }:
with config.krebs.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"
];
};
};
}