0a7d4c3469
lass 2 configs: add wallpaper.nix lass 2: add wallpaper-server.nix lass: refactor realwallpaper
33 lines
503 B
Nix
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"; }
|
|
];
|
|
};
|
|
};
|
|
}
|