18 lines
355 B
Nix
18 lines
355 B
Nix
{ config, lib, pkgs, ... }:
|
|
let
|
|
cfg = config.services.az-rdp;
|
|
in
|
|
{
|
|
options = {
|
|
services.az-rdp.enable = lib.mkEnableOption "enable rdp";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
services.xrdp = {
|
|
enable = true;
|
|
defaultWindowManager = "${pkgs.qtile}/bin/qtile start";
|
|
};
|
|
networking.firewall.allowedTCPPorts = [ 3389 ];
|
|
};
|
|
}
|