nixos/lighttpd: move cgit setup to cgit.nix

To where it really belongs. Separation of concern.

+5 -6
+5
nixos/modules/services/web-servers/lighttpd/cgit.nix
··· 63 } 64 ''; 65 66 }; 67 68 }
··· 63 } 64 ''; 65 66 + systemd.services.lighttpd.preStart = '' 67 + mkdir -p /var/cache/cgit 68 + chown lighttpd:lighttpd /var/cache/cgit 69 + ''; 70 + 71 }; 72 73 }
-6
nixos/modules/services/web-servers/lighttpd/default.nix
··· 224 description = "Lighttpd Web Server"; 225 after = [ "network.target" ]; 226 wantedBy = [ "multi-user.target" ]; 227 - preStart = '' 228 - ${if cfg.cgit.enable then '' 229 - mkdir -p /var/cache/cgit 230 - chown lighttpd:lighttpd /var/cache/cgit 231 - '' else ""} 232 - ''; 233 serviceConfig.ExecStart = "${pkgs.lighttpd}/sbin/lighttpd -D -f ${configFile}"; 234 # SIGINT => graceful shutdown 235 serviceConfig.KillSignal = "SIGINT";
··· 224 description = "Lighttpd Web Server"; 225 after = [ "network.target" ]; 226 wantedBy = [ "multi-user.target" ]; 227 serviceConfig.ExecStart = "${pkgs.lighttpd}/sbin/lighttpd -D -f ${configFile}"; 228 # SIGINT => graceful shutdown 229 serviceConfig.KillSignal = "SIGINT";