add wayvnc
This commit is contained in:
parent
0732d60d11
commit
3e1bc61294
@ -107,8 +107,10 @@
|
|||||||
|
|
||||||
services.ratbagd.enable = true;
|
services.ratbagd.enable = true;
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [ 8000 5900 ];
|
||||||
|
|
||||||
home-manager.users.${config.mainuser} = {
|
home-manager.users.${config.mainuser} = {
|
||||||
home.packages = lib.mkIf config.deviceSpecific.enableVirtualisation [
|
home.packages = [
|
||||||
inputs.nixos-generators.packages.${pkgs.hostPlatform.system}.nixos-generate
|
inputs.nixos-generators.packages.${pkgs.hostPlatform.system}.nixos-generate
|
||||||
pkgs.prismlauncher
|
pkgs.prismlauncher
|
||||||
pkgs.piper
|
pkgs.piper
|
||||||
@ -119,6 +121,7 @@
|
|||||||
pkgs.winbox
|
pkgs.winbox
|
||||||
pkgs.devenv
|
pkgs.devenv
|
||||||
pkgs.radeontop
|
pkgs.radeontop
|
||||||
|
pkgs.wayvnc
|
||||||
];
|
];
|
||||||
home.stateVersion = "23.05";
|
home.stateVersion = "23.05";
|
||||||
};
|
};
|
||||||
|
13
patches/neatvnc.patch
Normal file
13
patches/neatvnc.patch
Normal file
@ -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);
|
@ -38,6 +38,10 @@ with lib; {
|
|||||||
extraPkgs = pkgs: with pkgs; [ mono libkrb5 keyutils ];
|
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: {
|
nix = inputs.nix.packages.${system}.default.overrideAttrs (oa: {
|
||||||
doInstallCheck = false;
|
doInstallCheck = false;
|
||||||
patches = [ ./nix/doas.patch ] ++ oa.patches or [ ];
|
patches = [ ./nix/doas.patch ] ++ oa.patches or [ ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user