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.3 kB 48 lines
1{ self, config, lib, pkgs, ... }: 2{ 3 imports = [ 4 self.inputs.stockholm.nixosModules.realwallpaper 5 ]; 6 krebs.realwallpaper.enable = true; 7 8 system.activationScripts.wallpaper-chmod = '' 9 ${pkgs.coreutils}/bin/chmod +rx /var/realwallpaper 10 ''; 11 services.nginx.virtualHosts.wallpaper = { 12 extraConfig = '' 13 if ( $server_addr = "${config.krebs.build.host.nets.internet.ip4.addr}" ) { 14 return 403; 15 } 16 ''; 17 serverAliases = [ 18 "wallpaper.r" 19 ]; 20 locations."/".extraConfig = '' 21 autoindex on; 22 root /var/realwallpaper/; 23 ''; 24 locations."/realwallpaper.png".extraConfig = '' 25 root /var/realwallpaper/; 26 ''; 27 locations."/realwallpaper-krebs.png".extraConfig = '' 28 root /var/realwallpaper/; 29 ''; 30 locations."/realwallpaper-krebs-stars.png".extraConfig = '' 31 root /var/realwallpaper/; 32 ''; 33 locations."/realwallpaper-krebs-stars-berlin.png".extraConfig = '' 34 root /var/realwallpaper/; 35 ''; 36 locations."/realwallpaper-video.mp4".extraConfig = '' 37 root /var/realwallpaper/archive; 38 ''; 39 }; 40 41 krebs.iptables = { 42 tables = { 43 filter.INPUT.rules = [ 44 { predicate = "-i retiolum -p tcp --dport 80"; target = "ACCEPT"; } 45 ]; 46 }; 47 }; 48}