From 1f1737591360a3dbbdfb66a1ce8296258e124c9e Mon Sep 17 00:00:00 2001 From: sefidel Date: Wed, 15 Nov 2023 23:25:43 +0900 Subject: feat(nixos/haruka): add displaylink drivers --- nixos/haruka/configuration.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'nixos/haruka/configuration.nix') diff --git a/nixos/haruka/configuration.nix b/nixos/haruka/configuration.nix index eac1cb3..df6e46f 100644 --- a/nixos/haruka/configuration.nix +++ b/nixos/haruka/configuration.nix @@ -18,7 +18,9 @@ # Load the intel iGPU driver boot.initrd.kernelModules = [ "i915" ]; - services.xserver.videoDrivers = [ "intel" ]; + services.xserver.videoDrivers = [ "intel" "displaylink" ]; + + nix.allowedUnfree = [ "displaylink" ]; boot.initrd.supportedFilesystems = [ "zfs" ]; boot.supportedFilesystems = [ "zfs" ]; @@ -228,6 +230,12 @@ settings.default_session.command = "${pkgs.greetd.tuigreet}/bin/tuigreet -t -c sway"; }; + environment.sessionVariables = { + # wlroots displaylink hack + # see home/profiles/gui and `overlays/patches/wlroots-displaylink` for more info + WLR_EVDI_RENDER_DEVICE="/dev/dri/card0"; + }; + systemd.extraConfig = "RebootWatchdogSec=5"; fonts = { -- cgit 1.4.1