summaryrefslogtreecommitdiffstats
path: root/lass/2configs/realwallpaper-server.nix
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2015-10-03 18:21:01 +0200
committerlassulus <lass@aidsballs.de>2015-10-04 13:42:29 +0200
commit0a7d4c3469a0411790e6edb5bfe7d0bef3bf2dd6 (patch)
tree9c678d89e556499084b13fdc93c663cba7da099c /lass/2configs/realwallpaper-server.nix
parent041ef784486b554374fd5ad9e172889ad7e631d2 (diff)
lass 3: add wallpaper.nix
lass 2 configs: add wallpaper.nix lass 2: add wallpaper-server.nix lass: refactor realwallpaper
Diffstat (limited to 'lass/2configs/realwallpaper-server.nix')
-rw-r--r--lass/2configs/realwallpaper-server.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/lass/2configs/realwallpaper-server.nix b/lass/2configs/realwallpaper-server.nix
new file mode 100644
index 000000000..7340fc7ca
--- /dev/null
+++ b/lass/2configs/realwallpaper-server.nix
@@ -0,0 +1,32 @@
+{ 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"; }
+ ];
+ };
+ };
+}