From b9518dfafe5c7c8cc2499df4bbb163b0e3afbc06 Mon Sep 17 00:00:00 2001 From: seth Date: Thu, 28 Sep 2023 05:17:33 -0400 Subject: chore(flake): better format module --- nix/module.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'nix/module.nix') diff --git a/nix/module.nix b/nix/module.nix index abf348e..2e34af5 100644 --- a/nix/module.nix +++ b/nix/module.nix @@ -60,7 +60,7 @@ in { nginx = mkOption { description = mdDoc '' - With this option, you can customize an nginx virtual host which already has sensible defaults for Dolibarr. + With this option, you can customize an nginx virtual host which already has sensible defaults for guzzle_api. Set to {} if you do not need any customization to the virtual host. If enabled, then by default, the {option}`serverName` is `''${domain}`, @@ -75,7 +75,7 @@ in { example = literalExpression '' { enableACME = true; - forceSSL = true; + forceSSL = true; } ''; }; @@ -88,9 +88,11 @@ in { enable = mkDefault true; wantedBy = ["multi-user.target"]; after = ["network.target"]; + script = '' URL="${proto}://${cfg.domain}" ${cfg.package}/bin/guzzle-api-server --host ${cfg.listen.host} --port ${toString cfg.listen.port} ''; + serviceConfig = mkDefault { Type = "simple"; Restart = "always"; -- cgit v1.2.3