stockholm/lass/2configs/realwallpaper-server.nix
lassulus 0a7d4c3469 lass 3: add wallpaper.nix
lass 2 configs: add wallpaper.nix

lass 2: add wallpaper-server.nix

lass: refactor realwallpaper
2015-10-04 13:42:29 +02:00

33 lines
503 B
Nix

{ config, lib, ... }:
let
hostname = config.krebs.build.host.name;
inherit (lib)
nameValuePair
;
in {
imports = [
./realwallpaper.nix
];
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"; }
];
};
};
}