anchor.diff:        };
       };
   
  -
       environmentFile = mkOption {
         type = with types; nullOr path;
         default = null;
  
positive.code:       '';
        serviceConfig = {
          WorkingDirectory = cfg.workDir;
          ExecStart = "${pkgs.codimd}/bin/codimd";
          EnvironmentFile = mkIf (cfg.environmentFile != null) [ cfg.environmentFile ];
          Environment = [
            "CMD_CONFIG_FILE=${cfg.workDir}/config.json"
  
negative.code:   cfg = config.services.codimd;
  
    prettyJSON = conf:
      pkgs.runCommandLocal "codimd-config.json" {
        nativeBuildInputs = [ pkgs.jq ];
      } ''
        echo '${builtins.toJSON conf}' | jq \
          '{production:del(.[]|nulls)|del(.[][]?|nulls)}' > $out
      '';
  in
  