This commit is contained in:
iFargle 2023-12-04 20:40:54 +09:00
parent 24c3cb30c5
commit 27f34c11fe

View file

@ -1,4 +1,5 @@
{ ... }: { { pkgs, ... }: {
# Enabling Gnome causes the machien to sleep. Disable all of these.
systemd.targets.sleep.enable = false; systemd.targets.sleep.enable = false;
systemd.targets.suspend.enable = false; systemd.targets.suspend.enable = false;
systemd.targets.hibernate.enable = false; systemd.targets.hibernate.enable = false;
@ -11,6 +12,9 @@
confDir = "/etc/xrdp/conf"; confDir = "/etc/xrdp/conf";
}; };
environment.systemPackages = with pkgs; [ xorg.xinit ];
# XRDP needs IPv6 disabled to function. # XRDP needs IPv6 disabled to function.
boot.kernel.sysctl = { boot.kernel.sysctl = {
"net.ipv6.conf.enp0s13f0u1.disable_ipv6" = true; "net.ipv6.conf.enp0s13f0u1.disable_ipv6" = true;