diff options
| author | seth <[email protected]> | 2023-04-23 04:15:03 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-04-23 04:15:03 -0400 |
| commit | 096145b3bed06015621e0f6bf61591608772af2c (patch) | |
| tree | 04a32b81bb4bf5c01b30bf555149c3293a1e8cf3 | |
| parent | 73ea0ac824ded84978e1b3b9653df407d83c9024 (diff) | |
fix: correct a few typos in nix module
| -rw-r--r-- | nix/module.nix | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/nix/module.nix b/nix/module.nix index e615561..ec48bcb 100644 --- a/nix/module.nix +++ b/nix/module.nix @@ -10,25 +10,24 @@ in { options.services.guzzle-api = { enable = mkEnableOption "enable guzzle-api"; url = mkOption { - type = types.string; + type = types.str; default = ""; description = "url string for guzzle-api"; }; port = mkOption { - type = types.int; - default = 8080; + type = types.str; + default = "8080"; description = "port for guzzle-api"; }; }; - config.systemd.services.guzzle-api = mkIf cfg.enable { + config.systemd.services = mkIf cfg.enable { guzzle-api = { enable = mkDefault true; - ports = mkDefault ["8080:80"]; wantedBy = ["multi-user.target"]; after = ["network.target"]; script = '' - URL=${cfg.url} ${pkgs.guzzle-api-server} --host 0.0.0.0 --port "${cfg.port}" + URL=${cfg.url} ${pkgs.guzzle-api-server}/bin/guzzle-api-server --host 0.0.0.0 --port "${cfg.port}" ''; serviceConfig = mkDefault { Restart = "always"; |
