1 { config, lib, pkgs, ... }:
6 cfg = config.services.duckling;
10 enable = mkEnableOption (lib.mdDoc "duckling");
15 description = lib.mdDoc ''
16 Port on which duckling will run.
22 config = mkIf cfg.enable {
23 systemd.services.duckling = {
24 description = "Duckling server service";
25 wantedBy = [ "multi-user.target" ];
26 after = [ "network.target" ];
29 PORT = builtins.toString cfg.port;
33 ExecStart = "${pkgs.haskellPackages.duckling}/bin/duckling-example-exe --no-access-log --no-error-log";