diff --git a/system-config/configuration/homebox/default.nix b/system-config/configuration/homebox/default.nix index 13565b2..b47c22b 100644 --- a/system-config/configuration/homebox/default.nix +++ b/system-config/configuration/homebox/default.nix @@ -271,7 +271,7 @@ openwakeword = true; faster-whisper = true; }; - rustdesk.enable = false; #broken + rustdesk.enable = true; #broken pihole.enable = false; #broken }; }; diff --git a/system-config/services/containers/rustdesk/default.nix b/system-config/services/containers/rustdesk/default.nix index 4799ad8..7ace227 100644 --- a/system-config/services/containers/rustdesk/default.nix +++ b/system-config/services/containers/rustdesk/default.nix @@ -6,9 +6,9 @@ }; config = lib.mkIf config.sysconfig.opts.virtualization.rustdesk.enable { -/* + networking = { - firewall.allowedTCPPorts = [ 21115 21116 21117 ]; + firewall.allowedTCPPorts = [ 21115 21116 21117 21118 21119 ]; firewall.allowedUDPPorts = [ 21116 ]; }; containers.rustdesk = { @@ -21,18 +21,39 @@ { containerPort = 21115; hostPort = 21115; + protocol = "tcp"; } { containerPort = 21116; hostPort = 21116; + protocol = "tcp"; + } + { + containerPort = 21116; + hostPort = 21116; + protocol = "udp"; } { containerPort = 21117; hostPort = 21117; + protocol = "tcp"; } + { + containerPort = 21118; + hostPort = 21118; + protocol = "tcp"; + } + + { + containerPort = 21119; + hostPort = 21119; + protocol = "tcp"; + } + + ]; config = { -*/ + services.rustdesk-server = { enable = true; @@ -48,19 +69,17 @@ signal = { enable = true; - relayHosts = [ "blunkall.us:21117" ]; - #relayHosts = [ "localhost:21117" ]; + #relayHosts = [ "blunkall.us" ]; + relayHosts = [ "192.168.100.27" ]; extraArgs = [ "-k" "AAAAC3NzaC1lZDI1NTE5AAAAIIPztDjwgB3xCza5+p5z1jpGVYoVQNl3fqD69pPCm0NA" ]; }; }; - /* + system.stateVersion = "24.05"; }; }; - */ }; - }