stockholm/lass/2configs/realwallpaper.nix
2016-12-26 14:18:08 +01:00

29 lines
484 B
Nix

{ config, lib, ... }:
let
hostname = config.krebs.build.host.name;
inherit (lib)
nameValuePair
;
in {
krebs.realwallpaper.enable = true;
services.nginx.virtualHosts.wallpaper = {
serverAliases = [
hostname
];
locations."/wallpaper.png".extraConfig = ''
root /tmp/;
'';
};
krebs.iptables = {
tables = {
filter.INPUT.rules = [
{ predicate = "-i retiolum -p tcp --dport 80"; target = "ACCEPT"; }
];
};
};
}