summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseth <[email protected]>2023-09-28 05:17:33 -0400
committerseth <[email protected]>2023-09-28 05:17:33 -0400
commitb9518dfafe5c7c8cc2499df4bbb163b0e3afbc06 (patch)
treebde8483cb0798218a32b2ec9d82370ae0d10497e
parent55d0da1263edeb0af3553c178ca9d9b044e73694 (diff)
chore(flake): better format module
-rw-r--r--nix/module.nix6
1 files changed, 4 insertions, 2 deletions
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";