lol

nixos/lighttpd: improve sub-service option types (cgit, gitweb)

+3 -3
+1 -1
nixos/modules/services/web-servers/lighttpd/cgit.nix
··· 29 cache-size=1000 30 scan-path=/srv/git 31 ''; 32 - type = types.string; 33 description = '' 34 Verbatim contents of the cgit runtime configuration file. Documentation 35 (with cgitrc example file) is available in "man cgitrc". Or online:
··· 29 cache-size=1000 30 scan-path=/srv/git 31 ''; 32 + type = types.lines; 33 description = '' 34 Verbatim contents of the cgit runtime configuration file. Documentation 35 (with cgitrc example file) is available in "man cgitrc". Or online:
+2 -2
nixos/modules/services/web-servers/lighttpd/gitweb.nix
··· 25 26 projectroot = mkOption { 27 default = "/srv/git"; 28 - type = types.str; 29 description = '' 30 Path to git projects (bare repositories) that should be served by 31 gitweb. Must not end with a slash. ··· 34 35 extraConfig = mkOption { 36 default = ""; 37 - type = types.str; 38 description = '' 39 Verbatim configuration text appended to the generated gitweb.conf file. 40 '';
··· 25 26 projectroot = mkOption { 27 default = "/srv/git"; 28 + type = types.path; 29 description = '' 30 Path to git projects (bare repositories) that should be served by 31 gitweb. Must not end with a slash. ··· 34 35 extraConfig = mkOption { 36 default = ""; 37 + type = types.lines; 38 description = '' 39 Verbatim configuration text appended to the generated gitweb.conf file. 40 '';