From 6723f3050ba5f01bf2a7cce7df88f08f05ab67bc Mon Sep 17 00:00:00 2001 From: Matt Schreiber Date: Wed, 19 Mar 2025 13:49:12 -0400 Subject: [PATCH] nixos/gemstash: add `package` option --- nixos/modules/services/development/gemstash.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/development/gemstash.nix b/nixos/modules/services/development/gemstash.nix index 442a6630af8d..23611b41a358 100644 --- a/nixos/modules/services/development/gemstash.nix +++ b/nixos/modules/services/development/gemstash.nix @@ -36,6 +36,8 @@ in ''; }; + package = lib.mkPackageOption pkgs "gemstash" { }; + settings = lib.mkOption { default = { }; description = '' @@ -96,7 +98,7 @@ in after = [ "network.target" ]; serviceConfig = lib.mkMerge [ { - ExecStart = "${pkgs.gemstash}/bin/gemstash start --no-daemonize --config-file ${settingsFormat.generate "gemstash.yaml" (prefixColon cfg.settings)}"; + ExecStart = "${lib.getExe cfg.package} start --no-daemonize --config-file ${settingsFormat.generate "gemstash.yaml" (prefixColon cfg.settings)}"; NoNewPrivileges = true; User = "gemstash"; Group = "gemstash";