stockholm/lass/2configs/go.nix

30 lines
459 B
Nix
Raw Normal View History

2015-10-14 17:19:34 +00:00
{ config, lib, pkgs, ... }:
2015-10-08 23:24:13 +00:00
2015-10-14 17:19:34 +00:00
with lib;
2015-10-08 23:24:13 +00:00
{
imports = [
../3modules/go.nix
];
environment.systemPackages = [
pkgs.go
];
lass.go = {
enable = true;
};
2015-10-14 17:19:34 +00:00
krebs.nginx = {
enable = true;
servers.go = {
locations = [
(nameValuePair "/" ''
proxy_set_header Host go;
proxy_pass http://localhost:1337;
'')
];
server-names = [
"go"
"go.retiolum"
];
};
};
2015-10-08 23:24:13 +00:00
}