mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02:00
Merge pull request #245593 from wamserma/grocy-add-package-option
grocy: add package option
This commit is contained in:
commit
eae761dcb0
|
@ -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;
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue