Use RDP instead of X forwarding for 0ad
This commit is contained in:
parent
18b8b02c17
commit
4537e7c815
2 changed files with 6 additions and 2 deletions
|
@ -24,7 +24,7 @@
|
|||
teeworlds.enable = false;
|
||||
zeroad = {
|
||||
enable = true;
|
||||
asServer = false;
|
||||
asServer = true;
|
||||
};
|
||||
zfs = {
|
||||
enable = true;
|
||||
|
|
|
@ -23,10 +23,14 @@
|
|||
home-manager.users.charlotte = { pkgs, ... }: {
|
||||
home.packages = [ pkgsFor0AD.zeroad ];
|
||||
};
|
||||
|
||||
networking.firewall = lib.mkIf config.chvp.zeroad.asServer {
|
||||
allowedTCPPorts = [ 20595 ];
|
||||
allowedUDPPorts = [ 20595 ];
|
||||
};
|
||||
services.openssh.forwardX11 = lib.mkDefault config.chvp.zeroad.asServer;
|
||||
services.xrdp = lib.mkIf config.chvp.zeroad.asServer {
|
||||
enable = true;
|
||||
defaultWindowManager = "${pkgsFor0AD.zeroad}/bin/0ad";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue