aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-11-15 23:25:43 +0900
committersefidel <contact@sefidel.net>2023-11-15 23:25:43 +0900
commit1f1737591360a3dbbdfb66a1ce8296258e124c9e (patch)
tree9a251bd75a0a401240a4ab29d6acf6f5fd809ad3
parent2646371e8582af4ee31a099e32e652f7a5c98097 (diff)
downloadnixrc-1f1737591360a3dbbdfb66a1ce8296258e124c9e.zip
feat(nixos/haruka): add displaylink drivers
-rw-r--r--nixos/haruka/configuration.nix10
1 files changed, 9 insertions, 1 deletions
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 = {