summary refs log tree commit diff
path: root/nixos/modules/services/misc/gollum.nix
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2022-09-10 17:56:33 +0200
committerJörg Thalheim <joerg@thalheim.io>2022-09-10 17:57:08 +0200
commit6a66cf1b901efaf1b711c7d4423fc09e001ad13e (patch)
tree1b2a2c62d5c268254a573bcf72775844e0b07f14 /nixos/modules/services/misc/gollum.nix
parent54ce16370bc03831b7d225b64a1ff82b383e0242 (diff)
downloadnixpkgs-6a66cf1b901efaf1b711c7d4423fc09e001ad13e.tar
nixpkgs-6a66cf1b901efaf1b711c7d4423fc09e001ad13e.tar.gz
nixpkgs-6a66cf1b901efaf1b711c7d4423fc09e001ad13e.tar.bz2
nixpkgs-6a66cf1b901efaf1b711c7d4423fc09e001ad13e.tar.lz
nixpkgs-6a66cf1b901efaf1b711c7d4423fc09e001ad13e.tar.xz
nixpkgs-6a66cf1b901efaf1b711c7d4423fc09e001ad13e.tar.zst
nixpkgs-6a66cf1b901efaf1b711c7d4423fc09e001ad13e.zip
nixos/gollum: add package option
Diffstat (limited to 'nixos/modules/services/misc/gollum.nix')
-rw-r--r--nixos/modules/services/misc/gollum.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/nixos/modules/services/misc/gollum.nix b/nixos/modules/services/misc/gollum.nix
index a4bed2da8a2..ca6f42736a1 100644
--- a/nixos/modules/services/misc/gollum.nix
+++ b/nixos/modules/services/misc/gollum.nix
@@ -87,6 +87,14 @@ in
       description = lib.mdDoc "Specifies the path of the repository directory. If it does not exist, Gollum will create it on startup.";
     };
 
+    package = mkOption {
+      type = types.package;
+      default = pkgs.gollum;
+      defaultText = literalExpression "pkgs.gollum";
+      description = lib.mdDoc ''
+        The package used in the service
+      '';
+    };
   };
 
   config = mkIf cfg.enable {
@@ -120,7 +128,7 @@ in
         Group = config.users.groups.gollum.name;
         WorkingDirectory = cfg.stateDir;
         ExecStart = ''
-          ${pkgs.gollum}/bin/gollum \
+          ${cfg.package}/bin/gollum \
             --port ${toString cfg.port} \
             --host ${cfg.address} \
             --config ${pkgs.writeText "gollum-config.rb" cfg.extraConfig} \