1 { config, lib, pkgs, ... }:
3 cfg = config.services.duckling;
7 enable = lib.mkEnableOption "duckling";
10 type = lib.types.port;
13 Port on which duckling will run.
19 config = lib.mkIf cfg.enable {
20 systemd.services.duckling = {
21 description = "Duckling server service";
22 wantedBy = [ "multi-user.target" ];
23 after = [ "network.target" ];
26 PORT = builtins.toString cfg.port;
30 ExecStart = "${pkgs.haskellPackages.duckling}/bin/duckling-example-exe --no-access-log --no-error-log";