diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2022-09-10 17:56:33 +0200 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2022-09-10 17:57:08 +0200 |
commit | 6a66cf1b901efaf1b711c7d4423fc09e001ad13e (patch) | |
tree | 1b2a2c62d5c268254a573bcf72775844e0b07f14 /nixos | |
parent | 54ce16370bc03831b7d225b64a1ff82b383e0242 (diff) | |
download | nixlib-6a66cf1b901efaf1b711c7d4423fc09e001ad13e.tar nixlib-6a66cf1b901efaf1b711c7d4423fc09e001ad13e.tar.gz nixlib-6a66cf1b901efaf1b711c7d4423fc09e001ad13e.tar.bz2 nixlib-6a66cf1b901efaf1b711c7d4423fc09e001ad13e.tar.lz nixlib-6a66cf1b901efaf1b711c7d4423fc09e001ad13e.tar.xz nixlib-6a66cf1b901efaf1b711c7d4423fc09e001ad13e.tar.zst nixlib-6a66cf1b901efaf1b711c7d4423fc09e001ad13e.zip |
nixos/gollum: add package option
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/misc/gollum.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/nixos/modules/services/misc/gollum.nix b/nixos/modules/services/misc/gollum.nix index a4bed2da8a2f..ca6f42736a10 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} \ |