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