This repository has no description
1.1 kB
44 lines
1{
2 self,
3 config,
4 pkgs,
5 ...
6}:
7{
8 krebs.realwallpaper.enable = true;
9
10 system.activationScripts.wallpaper-chmod = ''
11 ${pkgs.coreutils}/bin/chmod +rx /var/realwallpaper
12 '';
13 services.nginx.virtualHosts.wallpaper = {
14 extraConfig = ''
15 if ( $server_addr = "${
16 self.inputs.kartei.hosts.${config.networking.hostName}.nets.internet.ip4.addr
17 }" ) {
18 return 403;
19 }
20 '';
21 serverAliases = [
22 "wallpaper.r"
23 ];
24 locations."/".extraConfig = ''
25 autoindex on;
26 root /var/realwallpaper/;
27 '';
28 locations."/realwallpaper.png".extraConfig = ''
29 root /var/realwallpaper/;
30 '';
31 locations."/realwallpaper-krebs.png".extraConfig = ''
32 root /var/realwallpaper/;
33 '';
34 locations."/realwallpaper-krebs-stars.png".extraConfig = ''
35 root /var/realwallpaper/;
36 '';
37 locations."/realwallpaper-krebs-stars-berlin.png".extraConfig = ''
38 root /var/realwallpaper/;
39 '';
40 locations."/realwallpaper-video.mp4".extraConfig = ''
41 root /var/realwallpaper/archive;
42 '';
43 };
44}