Merge pull request #245593 from wamserma/grocy-add-package-option

grocy: add package option
This commit is contained in:
Atemu 2023-10-06 13:56:58 +02:00 committed by GitHub
commit eae761dcb0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 ''
@ -143,7 +145,7 @@ in {
services.nginx = {
enable = true;
virtualHosts."${cfg.hostName}" = mkMerge [
{ root = "${pkgs.grocy}/public";
{ root = "${cfg.package}/public";
locations."/".extraConfig = ''
rewrite ^ /index.php;
'';