l realwallpaper: make public readable

This commit is contained in:
lassulus 2023-09-03 12:10:37 +02:00
parent 07f4e3fa8d
commit 8c074037a1

View File

@ -10,7 +10,7 @@ in {
krebs.realwallpaper.enable = true; krebs.realwallpaper.enable = true;
system.activationScripts.wallpaper-chmod = '' system.activationScripts.wallpaper-chmod = ''
${pkgs.coreutils}/bin/chmod +x /var/realwallpaper ${pkgs.coreutils}/bin/chmod +rx /var/realwallpaper
''; '';
services.nginx.virtualHosts.wallpaper = { services.nginx.virtualHosts.wallpaper = {
extraConfig = '' extraConfig = ''
@ -21,9 +21,9 @@ in {
serverAliases = [ serverAliases = [
"wallpaper.r" "wallpaper.r"
]; ];
locations."/realwallpaper/".extraConfig = '' locations."/".extraConfig = ''
index on; autoindex on;
root /var/realwallpaper"; root /var/realwallpaper/;
''; '';
locations."/realwallpaper.png".extraConfig = '' locations."/realwallpaper.png".extraConfig = ''
root /var/realwallpaper/; root /var/realwallpaper/;