Use upstreaming displaylink

This commit is contained in:
Geoffrey Frogeye 2024-06-05 00:46:10 +02:00
parent 5297f8478a
commit bc53468373
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
3 changed files with 7 additions and 2 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, lib, config, nixos-hardware, ... }: { pkgs, lib, config, nixos-hardware, displaylinknixpkgs, ... }:
{ {
config = { config = {
# UEFI works here, and variables can be touched # UEFI works here, and variables can be touched
@ -26,6 +26,11 @@
nuit = "1"; nuit = "1";
}; };
}; };
nixpkgs.overlays = [
(self: super: {
displaylink = (import displaylinknixpkgs { inherit (super) system; config.allowUnfree = true; }).displaylink;
})
];
# Needs prefetched binary blobs, see https://nixos.wiki/wiki/Displaylink # Needs prefetched binary blobs, see https://nixos.wiki/wiki/Displaylink
services.xserver.videoDrivers = [ "displaylink" "modesetting" ]; services.xserver.videoDrivers = [ "displaylink" "modesetting" ];
# TODO See if nvidia and DL can work together. # TODO See if nvidia and DL can work together.

View file

@ -4,6 +4,7 @@
inputs = { inputs = {
# Packages # Packages
nixpkgs.url = "nixpkgs/nixos-24.05"; nixpkgs.url = "nixpkgs/nixos-24.05";
displaylinknixpkgs.url = "github:GeoffreyFrogeye/nixpkgs/displaylink-600";
# OS # OS
disko = { disko = {
url = "disko"; url = "disko";

View file

@ -1 +0,0 @@
/nix/store/6887mr1xmcjgb99saw2ilv2mfjb8s2xq-nixos-system-curacao-24.05.20240531.805a384