configure RDP
This commit is contained in:
		
							parent
							
								
									252d9b5e2f
								
							
						
					
					
						commit
						d551c553e7
					
				
							
								
								
									
										24
									
								
								flake.nix
									
									
									
									
									
								
							
							
						
						
									
										24
									
								
								flake.nix
									
									
									
									
									
								
							| @ -58,12 +58,14 @@ | |||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|             # Open ports in the firewall. |             # Open ports in the firewall. | ||||||
|               networking.firewall.allowedTCPPorts = [  |             networking.firewall.allowedTCPPorts = [ | ||||||
|                 59010 #SoundWireServer |               59010 #SoundWireServer | ||||||
|               ]; |               3389 #RDP | ||||||
|               networking.firewall.allowedUDPPorts = [  |             ]; | ||||||
|                 59010 #SoundWireServer |             networking.firewall.allowedUDPPorts = [ | ||||||
|               ]; |               59010 #SoundWireServer | ||||||
|  |               3389  #RDP | ||||||
|  |             ]; | ||||||
|             # Or disable the firewall altogether. |             # Or disable the firewall altogether. | ||||||
|             # networking.firewall.enable = false; |             # networking.firewall.enable = false; | ||||||
| 
 | 
 | ||||||
| @ -89,6 +91,16 @@ | |||||||
|                 flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo |                 flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo | ||||||
|               ''; |               ''; | ||||||
|             }; |             }; | ||||||
|  |             services.xrdp.enable = true; | ||||||
|  |             services.xrdp.defaultWindowManager = "${pkgs.gnome-session}/bin/gnome-session"; | ||||||
|  |             # services.xrdp.openFirewall = true; | ||||||
|  | 
 | ||||||
|  |             # Disable the GNOME3/GDM auto-suspend feature that cannot be disabled in GUI! | ||||||
|  |             # If no user is logged in, the machine will power down after 20 minutes. | ||||||
|  |             systemd.targets.sleep.enable = false; | ||||||
|  |             systemd.targets.suspend.enable = false; | ||||||
|  |             systemd.targets.hibernate.enable = false; | ||||||
|  |             systemd.targets.hybrid-sleep.enable = false; | ||||||
|           } |           } | ||||||
|         ]; |         ]; | ||||||
|         specialArgs = { inherit inputs; }; |         specialArgs = { inherit inputs; }; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user