26 lines
No EOL
733 B
Nix
26 lines
No EOL
733 B
Nix
{ pkgs, ... }: {
|
|
# Enabling Gnome causes the machien to sleep. Disable all of these.
|
|
systemd.targets.sleep.enable = false;
|
|
systemd.targets.suspend.enable = false;
|
|
systemd.targets.hibernate.enable = false;
|
|
systemd.targets.hybrid-sleep.enable = false;
|
|
|
|
services.xrdp = {
|
|
enable = true;
|
|
defaultWindowManager = "${pkgs.xfce.xfce4-session}/bin/startxfce4";
|
|
openFirewall = true;
|
|
confDir = "/etc/xrdp/conf";
|
|
};
|
|
|
|
environment.systemPackages = [
|
|
pkgs.xrdp
|
|
pkgs.xorg.xinit
|
|
];
|
|
|
|
# XRDP needs IPv6 disabled to function.
|
|
boot.kernel.sysctl = {
|
|
"net.ipv6.conf.enp0s13f0u1.disable_ipv6" = true;
|
|
"net.ipv6.conf.all.disable_ipv6" = true;
|
|
"net.ipv6.conf.wlp170s0.disable_ipv6" = true;
|
|
};
|
|
} |