This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

superconfig / 2configs / realwallpaper.nix
1.1 kB 45 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 = "${config.krebs.build.host.nets.internet.ip4.addr}" ) { 19 return 403; 20 } 21 ''; 22 serverAliases = [ 23 "wallpaper.r" 24 ]; 25 locations."/".extraConfig = '' 26 autoindex on; 27 root /var/realwallpaper/; 28 ''; 29 locations."/realwallpaper.png".extraConfig = '' 30 root /var/realwallpaper/; 31 ''; 32 locations."/realwallpaper-krebs.png".extraConfig = '' 33 root /var/realwallpaper/; 34 ''; 35 locations."/realwallpaper-krebs-stars.png".extraConfig = '' 36 root /var/realwallpaper/; 37 ''; 38 locations."/realwallpaper-krebs-stars-berlin.png".extraConfig = '' 39 root /var/realwallpaper/; 40 ''; 41 locations."/realwallpaper-video.mp4".extraConfig = '' 42 root /var/realwallpaper/archive; 43 ''; 44 }; 45}