1
0
Fork 0

nixbld: enable munin

This commit is contained in:
Sebastien Bourdeauducq 2019-05-24 10:26:59 +08:00
parent 898e81abc3
commit 64eaa90250
1 changed files with 10 additions and 0 deletions

View File

@ -170,6 +170,15 @@ ACTION=="add", SUBSYSTEM=="tty", \
virtualisation.libvirtd.enable = true; virtualisation.libvirtd.enable = true;
virtualisation.docker.enable = true; virtualisation.docker.enable = true;
services.munin-node.enable = true;
services.munin-cron = {
enable = true;
hosts = ''
[${config.networking.hostName}]
address localhost
'';
};
services.gitea = { services.gitea = {
enable = true; enable = true;
httpPort = 3001; httpPort = 3001;
@ -264,6 +273,7 @@ ACTION=="add", SUBSYSTEM=="tty", \
"lab.m-labs.hk" = { "lab.m-labs.hk" = {
addSSL = true; addSSL = true;
useACMEHost = "nixbld.m-labs.hk"; useACMEHost = "nixbld.m-labs.hk";
locations."/munin".alias = "/var/www/munin";
locations."/homu/".proxyPass = "http://127.0.0.1:54856/"; locations."/homu/".proxyPass = "http://127.0.0.1:54856/";
}; };
"nixbld.m-labs.hk" = { "nixbld.m-labs.hk" = {