kholinar: Add displayLink driver

This commit is contained in:
Charlotte Van Petegem 2024-08-01 20:38:40 +02:00
parent 30a258bad5
commit 6376b973b1
No known key found for this signature in database
GPG key ID: 019E764B7184435A

View file

@ -21,7 +21,10 @@
};
chvp.base.zfs.systemLinks = [{ path = "/etc/secureboot"; type = "cache"; }];
chvp.base = {
nix.unfreePackages = [ "displaylink" ];
zfs.systemLinks = [{ path = "/etc/secureboot"; type = "cache"; }];
};
# For Secure Boot management
environment.systemPackages = [ pkgs.sbctl ];
@ -73,5 +76,21 @@
];
};
};
services.fstrim.enable = true;
services = {
fstrim.enable = true;
xserver.videoDrivers = [ "displaylink" "modesetting" "fbdev" ];
};
nixpkgs.overlays = [
(final: prev: {
wlroots = prev.wlroots.overrideAttrs (old: {
patches = (old.patches or []) ++ [(
final.fetchpatch {
url = "https://gitlab.freedesktop.org/wlroots/wlroots/uploads/b4f932e370ed03d88f202191eaf60965/DisplayLink.patch";
hash = "sha256-1HheLsOSnj4OMiA35QCHkWprTNgAeG2tXrGbaQyUrF4=";
}
)];
});
})
];
environment.variables.WLR_DRM_DEVICES = "/dev/dri/card0:/dev/dri/card1";
}