From 9a14eadbb674773a3bc5d3ff7a4a634f088bbd28 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sat, 19 Dec 2020 19:38:57 +0000 Subject: [PATCH] porcorosso: move intel selection to a nixos specialisation --- ops/nixos/porcorosso/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ops/nixos/porcorosso/default.nix b/ops/nixos/porcorosso/default.nix index 7add399f8a..4098368184 100644 --- a/ops/nixos/porcorosso/default.nix +++ b/ops/nixos/porcorosso/default.nix @@ -143,8 +143,10 @@ in { services.xserver.layout = "us"; services.xserver.libinput.enable = true; services.xserver.windowManager.i3.enable = true; - #services.xserver.videoDrivers = [ "nvidia" ]; - services.xserver.videoDrivers = [ "intel" ]; + services.xserver.videoDrivers = [ "nvidia" ]; + specialisation.intelGraphics.configuration = { + services.xserver.videoDrivers = lib.mkForce [ "intel" ]; + }; services.xserver.displayManager.gdm = { enable = true; };