summary refs log tree commit diff
path: root/nixos/modules/services/misc/gitit.nix
diff options
context:
space:
mode:
authorEdward Tjörnhammar <ed@cflags.cc>2015-08-03 22:27:43 +0200
committerEdward Tjörnhammar <ed@cflags.cc>2015-08-03 22:29:41 +0200
commit1e2d3f3b5f7c67d3462355fa81d408bbdad63cd7 (patch)
treed64e8a011e358ccdd9e4948fc19a8ab45a2d011c /nixos/modules/services/misc/gitit.nix
parent6d23f43b30e9bf0abc3d0d33cede022e8edc9ffb (diff)
downloadnixpkgs-1e2d3f3b5f7c67d3462355fa81d408bbdad63cd7.tar
nixpkgs-1e2d3f3b5f7c67d3462355fa81d408bbdad63cd7.tar.gz
nixpkgs-1e2d3f3b5f7c67d3462355fa81d408bbdad63cd7.tar.bz2
nixpkgs-1e2d3f3b5f7c67d3462355fa81d408bbdad63cd7.tar.lz
nixpkgs-1e2d3f3b5f7c67d3462355fa81d408bbdad63cd7.tar.xz
nixpkgs-1e2d3f3b5f7c67d3462355fa81d408bbdad63cd7.tar.zst
nixpkgs-1e2d3f3b5f7c67d3462355fa81d408bbdad63cd7.zip
nixos: gitit service, use list of strings for plugins
Diffstat (limited to 'nixos/modules/services/misc/gitit.nix')
-rw-r--r--nixos/modules/services/misc/gitit.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/modules/services/misc/gitit.nix b/nixos/modules/services/misc/gitit.nix
index 83186f63c2c..b23bbaef5f7 100644
--- a/nixos/modules/services/misc/gitit.nix
+++ b/nixos/modules/services/misc/gitit.nix
@@ -290,7 +290,7 @@ let
       };
 
       plugins = mkOption {
-        type = types.path;
+        type = with types; listOf str;
         description = ''
           Specifies a list of plugins to load. Plugins may be specified either
           by their path or by their module name. If the plugin name starts
@@ -565,7 +565,7 @@ video/x-ms-wmx  wmx
     no-edit: ${cfg.noEdit}
     default-summary: ${cfg.defaultSummary}
     table-of-contents: ${toYesNo cfg.tableOfContents}
-    plugins: ${cfg.plugins}
+    plugins: ${concatStringsSep "," cfg.plugins}
     use-cache: ${toYesNo cfg.useCache}
     cache-dir: ${cfg.cacheDir}
     max-upload-size: ${cfg.maxUploadSize}
@@ -604,7 +604,7 @@ in
       haskellPackages = mkDefault pkgs.haskellPackages;
       staticDir = gititShared + "/data/static";
       templatesDir = gititShared + "/data/templates";
-      plugins = gititShared + "/plugins/Dot.hs";
+      plugins = [ ];
     };
 
     users.extraUsers.gitit = {