···3535 };
36363737 haskellPackages = mkOption {
3838+ default = pkgs.haskellPackages;
3839 defaultText = "pkgs.haskellPackages";
3940 example = literalExample "pkgs.haskell.packages.ghc784";
4041 description = "haskellPackages used to build gitit and plugins.";
···137138138139 staticDir = mkOption {
139140 type = types.path;
141141+ default = gititShared + "/data/static";
140142 description = ''
141143 Specifies the path of the static directory (containing javascript,
142144 css, and images). If it does not exist, gitit will create it and
···207209208210 templatesDir = mkOption {
209211 type = types.path;
212212+ default = gititShared + "/data/templates";
210213 description = ''
211214 Specifies the path of the directory containing page templates. If it
212215 does not exist, gitit will create it with default templates. Users
···288291289292 plugins = mkOption {
290293 type = with types; listOf str;
294294+ default = [ (gititShared + "/plugins/Dot.hs") ];
291295 description = ''
292296 Specifies a list of plugins to load. Plugins may be specified either
293297 by their path or by their module name. If the plugin name starts
···640644 options.services.gitit = gititOptions;
641645642646 config = mkIf cfg.enable {
643643-644644- services.gitit = {
645645- haskellPackages = mkDefault pkgs.haskellPackages;
646646- staticDir = gititShared + "/data/static";
647647- templatesDir = gititShared + "/data/templates";
648648- plugins = [ ];
649649- };
650647651648 users.extraUsers.gitit = {
652649 group = config.users.extraGroups.gitit.name;