From 02f0dc8cfff494b59cc3431cd86b9a9cf636a275 Mon Sep 17 00:00:00 2001 From: "Markus S. Wamser" Date: Sun, 23 Jul 2023 21:55:54 +0200 Subject: [PATCH] grocy: add package option apply review from @SuperSandro2000 Co-authored-by: Sandro --- nixos/modules/services/web-apps/grocy.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/web-apps/grocy.nix b/nixos/modules/services/web-apps/grocy.nix index 688367cafaf5..ba9e67f7ee2c 100644 --- a/nixos/modules/services/web-apps/grocy.nix +++ b/nixos/modules/services/web-apps/grocy.nix @@ -8,6 +8,8 @@ in { options.services.grocy = { enable = mkEnableOption (lib.mdDoc "grocy"); + package = mkPackageOptionMD pkgs "grocy" { }; + hostName = mkOption { type = types.str; description = lib.mdDoc '' @@ -135,7 +137,7 @@ in { services.nginx = { enable = true; virtualHosts."${cfg.hostName}" = mkMerge [ - { root = "${pkgs.grocy}/public"; + { root = "${cfg.package}/public"; locations."/".extraConfig = '' rewrite ^ /index.php; '';