2016-06-25 16:38:30 +00:00
|
|
|
{ config, lib, ... }:
|
2015-10-03 16:21:01 +00:00
|
|
|
|
2016-06-25 16:38:30 +00:00
|
|
|
let
|
|
|
|
hostname = config.krebs.build.host.name;
|
|
|
|
inherit (lib)
|
|
|
|
nameValuePair
|
|
|
|
;
|
|
|
|
|
|
|
|
in {
|
2015-10-05 12:50:07 +00:00
|
|
|
krebs.realwallpaper.enable = true;
|
2016-06-25 16:38:30 +00:00
|
|
|
|
|
|
|
krebs.nginx.servers.wallpaper = {
|
|
|
|
server-names = [
|
|
|
|
hostname
|
|
|
|
];
|
|
|
|
locations = [
|
|
|
|
(nameValuePair "/wallpaper.png" ''
|
|
|
|
root /tmp/;
|
|
|
|
'')
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
krebs.iptables = {
|
|
|
|
tables = {
|
|
|
|
filter.INPUT.rules = [
|
|
|
|
{ predicate = "-i retiolum -p tcp --dport 80"; target = "ACCEPT"; }
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2015-10-03 16:21:01 +00:00
|
|
|
}
|