stockholm/lass/2configs/realwallpaper.nix

29 lines
484 B
Nix
Raw Normal View History

2016-06-25 18:38:30 +02:00
{ config, lib, ... }:
2016-06-25 18:38:30 +02:00
let
hostname = config.krebs.build.host.name;
inherit (lib)
nameValuePair
;
in {
krebs.realwallpaper.enable = true;
2016-06-25 18:38:30 +02:00
2016-12-26 14:18:08 +01:00
services.nginx.virtualHosts.wallpaper = {
serverAliases = [
2016-06-25 18:38:30 +02:00
hostname
];
2016-12-26 14:18:08 +01:00
locations."/wallpaper.png".extraConfig = ''
root /tmp/;
'';
2016-06-25 18:38:30 +02:00
};
krebs.iptables = {
tables = {
filter.INPUT.rules = [
{ predicate = "-i retiolum -p tcp --dport 80"; target = "ACCEPT"; }
];
};
};
}