mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 04:31:52 +00:00
Merge pull request #149860 from 1000teslas/xrdp-conf
nixos/xrdp: add confDir option
This commit is contained in:
commit
c84ba61d73
|
@ -97,6 +97,11 @@ in
|
|||
'';
|
||||
};
|
||||
|
||||
confDir = mkOption {
|
||||
type = types.path;
|
||||
default = confDir;
|
||||
description = "The location of the config files for xrdp.";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -149,7 +154,7 @@ in
|
|||
User = "xrdp";
|
||||
Group = "xrdp";
|
||||
PermissionsStartOnly = true;
|
||||
ExecStart = "${cfg.package}/bin/xrdp --nodaemon --port ${toString cfg.port} --config ${confDir}/xrdp.ini";
|
||||
ExecStart = "${cfg.package}/bin/xrdp --nodaemon --port ${toString cfg.port} --config ${cfg.confDir}/xrdp.ini";
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -159,7 +164,7 @@ in
|
|||
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 ${confDir}/sesman.ini";
|
||||
ExecStart = "${cfg.package}/bin/xrdp-sesman --nodaemon --config ${cfg.confDir}/sesman.ini";
|
||||
ExecStop = "${pkgs.coreutils}/bin/kill -INT $MAINPID";
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue