anchor.diff:          '';
         };
   
  +      confDir = mkOption {
  +        type = types.package;
  +        default = confDir;
  +        description = "The location of the config files for xrdp.";
  +      };
       };
     };
   
  
positive.code:           User = "xrdp";
            Group = "xrdp";
            PermissionsStartOnly = true;
            ExecStart = "${cfg.package}/bin/xrdp --nodaemon --port ${toString cfg.port} --config ${confDir}/xrdp.ini";
          };
        };
  
  
negative.code:         description = "xrdp session manager";
          restartIfChanged = false; # do not restart on "nixos-rebuild switch". like "display-manager", it can have many interactive programs as children
          serviceConfig = {
            ExecStart = "${cfg.package}/bin/xrdp-sesman --nodaemon --config ${cfg.confDir}/sesman.ini";
            ExecStop  = "${pkgs.coreutils}/bin/kill -INT $MAINPID";
          };
        };
  