Add xrdp
This commit is contained in:
parent
3a1c3469d2
commit
f6b81c0bac
3 changed files with 14 additions and 5 deletions
|
@ -10,7 +10,8 @@
|
||||||
./ssh-luks.nix
|
./ssh-luks.nix
|
||||||
./docker.nix
|
./docker.nix
|
||||||
./wireguard.nix
|
./wireguard.nix
|
||||||
] ++ lib.optional (builtins.isString desktop) ./gnome-rdp.nix;
|
] ++ lib.optional (builtins.isString desktop) ./sleep.nix
|
||||||
|
++ lib.optional (builtins.isString desktop) ./xrdp.nix;
|
||||||
|
|
||||||
# steam , etc
|
# steam , etc
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
@ -48,10 +49,13 @@
|
||||||
"--advertise-routes=10.2.0.0/24"
|
"--advertise-routes=10.2.0.0/24"
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.kernel.sysctl = { "net.ipv4.ip_forward" = true; };
|
boot.kernel.sysctl = {
|
||||||
|
"net.ipv4.ip_forward" = true;
|
||||||
|
"net.ipv6.ip_forward" = true;
|
||||||
|
};
|
||||||
|
|
||||||
boot.initrd.services.udev.rules = ''
|
boot.initrd.services.udev.rules = ''
|
||||||
# This is used to change the default configuration of Realtek USB ethernet adapters
|
# This is used to load the correct kernel module for the Framework USB-C Ethernet Adapter
|
||||||
|
|
||||||
ACTION!="add", GOTO="usb_realtek_net_end"
|
ACTION!="add", GOTO="usb_realtek_net_end"
|
||||||
SUBSYSTEM!="usb", GOTO="usb_realtek_net_end"
|
SUBSYSTEM!="usb", GOTO="usb_realtek_net_end"
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
{ ... }: {
|
{ ... }: {
|
||||||
services.gnome.gnome-remote-desktop.enable = true;
|
|
||||||
networking.firewall.allowedTCPPorts = [ 3389 ];
|
|
||||||
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;
|
7
nixos/hosts/framework-server/xrdp.nix
Normal file
7
nixos/hosts/framework-server/xrdp.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{ inputs, config, lib, pkgs, modulesPath, desktop, username, ... }: {
|
||||||
|
services.xrdp = {
|
||||||
|
enable = true;
|
||||||
|
openFirewall = true;
|
||||||
|
defaultWindowManager = "gnome-shell";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue