summaryrefslogtreecommitdiffstats
path: root/nixos/modules/services/misc/redmine.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules/services/misc/redmine.nix')
-rw-r--r--nixos/modules/services/misc/redmine.nix14
1 files changed, 7 insertions, 7 deletions
diff --git a/nixos/modules/services/misc/redmine.nix b/nixos/modules/services/misc/redmine.nix
index 58a595b5c76f..d881ea913695 100644
--- a/nixos/modules/services/misc/redmine.nix
+++ b/nixos/modules/services/misc/redmine.nix
@@ -283,13 +283,13 @@ in
services.redmine.settings = {
production = {
- scm_subversion_command = if cfg.components.subversion then "${pkgs.subversion}/bin/svn" else "";
- scm_mercurial_command = if cfg.components.mercurial then "${pkgs.mercurial}/bin/hg" else "";
- scm_git_command = if cfg.components.git then "${pkgs.git}/bin/git" else "";
- scm_cvs_command = if cfg.components.cvs then "${pkgs.cvs}/bin/cvs" else "";
- scm_bazaar_command = if cfg.components.breezy then "${pkgs.breezy}/bin/bzr" else "";
- imagemagick_convert_command = if cfg.components.imagemagick then "${pkgs.imagemagick}/bin/convert" else "";
- gs_command = if cfg.components.ghostscript then "${pkgs.ghostscript}/bin/gs" else "";
+ scm_subversion_command = optionalString cfg.components.subversion "${pkgs.subversion}/bin/svn";
+ scm_mercurial_command = optionalString cfg.components.mercurial "${pkgs.mercurial}/bin/hg";
+ scm_git_command = optionalString cfg.components.git "${pkgs.git}/bin/git";
+ scm_cvs_command = optionalString cfg.components.cvs "${pkgs.cvs}/bin/cvs";
+ scm_bazaar_command = optionalString cfg.components.breezy "${pkgs.breezy}/bin/bzr";
+ imagemagick_convert_command = optionalString cfg.components.imagemagick "${pkgs.imagemagick}/bin/convert";
+ gs_command = optionalString cfg.components.ghostscript "${pkgs.ghostscript}/bin/gs";
minimagick_font_path = "${cfg.components.minimagick_font_path}";
};
};