diff options
author | lassulus <lass@aidsballs.de> | 2015-10-03 18:21:01 +0200 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2015-10-04 13:42:29 +0200 |
commit | 0a7d4c3469a0411790e6edb5bfe7d0bef3bf2dd6 (patch) | |
tree | 9c678d89e556499084b13fdc93c663cba7da099c /lass/2configs | |
parent | 041ef784486b554374fd5ad9e172889ad7e631d2 (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')
-rw-r--r-- | lass/2configs/realwallpaper-server.nix | 32 | ||||
-rw-r--r-- | lass/2configs/realwallpaper.nix | 9 |
2 files changed, 41 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"; } + ]; + }; + }; +} diff --git a/lass/2configs/realwallpaper.nix b/lass/2configs/realwallpaper.nix new file mode 100644 index 000000000..f1c8861e1 --- /dev/null +++ b/lass/2configs/realwallpaper.nix @@ -0,0 +1,9 @@ +{ config, ... }: + +{ + imports = [ + ../3modules/realwallpaper.nix + ]; + + lass.realwallpaper.enable = true; +} |