diff --git a/machines/AMD-Workstation/default.nix b/machines/AMD-Workstation/default.nix index b830256..665b8c5 100644 --- a/machines/AMD-Workstation/default.nix +++ b/machines/AMD-Workstation/default.nix @@ -107,8 +107,10 @@ services.ratbagd.enable = true; + networking.firewall.allowedTCPPorts = [ 8000 5900 ]; + home-manager.users.${config.mainuser} = { - home.packages = lib.mkIf config.deviceSpecific.enableVirtualisation [ + home.packages = [ inputs.nixos-generators.packages.${pkgs.hostPlatform.system}.nixos-generate pkgs.prismlauncher pkgs.piper @@ -119,6 +121,7 @@ pkgs.winbox pkgs.devenv pkgs.radeontop + pkgs.wayvnc ]; home.stateVersion = "23.05"; }; diff --git a/patches/neatvnc.patch b/patches/neatvnc.patch new file mode 100644 index 0000000..c47da46 --- /dev/null +++ b/patches/neatvnc.patch @@ -0,0 +1,13 @@ +diff --git a/src/display.c b/src/display.c +index ec59959..470f69b 100644 +--- a/src/display.c ++++ b/src/display.c +@@ -117,6 +117,9 @@ void nvnc_display_feed_buffer(struct nvnc_display* self, struct nvnc_fb* fb, + struct nvnc* server = self->server; + assert(server); + ++ pixman_region_intersect_rect(damage, damage, 0, 0, fb->width, ++ fb->height); ++ + struct pixman_region16 refined_damage; + pixman_region_init(&refined_damage); diff --git a/profiles/overlay.nix b/profiles/overlay.nix index 2fba402..a292926 100644 --- a/profiles/overlay.nix +++ b/profiles/overlay.nix @@ -38,6 +38,10 @@ with lib; { extraPkgs = pkgs: with pkgs; [ mono libkrb5 keyutils ]; }; + neatvnc = prev.neatvnc.overrideAttrs (oa: { + patches = [ ../patches/neatvnc.patch ] ++ oa.patches or [ ]; + }); + nix = inputs.nix.packages.${system}.default.overrideAttrs (oa: { doInstallCheck = false; patches = [ ./nix/doas.patch ] ++ oa.patches or [ ];