From e6ee8f7a83586d11f55a03f1b7cec9d14311ddf8 Mon Sep 17 00:00:00 2001 From: Akshay Date: Tue, 24 Jan 2023 22:27:44 +0530 Subject: enable graphics drivers --- hosts/myrtle/configuration.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'hosts') diff --git a/hosts/myrtle/configuration.nix b/hosts/myrtle/configuration.nix index 7a7d9d1..468f64a 100644 --- a/hosts/myrtle/configuration.nix +++ b/hosts/myrtle/configuration.nix @@ -10,6 +10,8 @@ boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; boot.kernelPackages = pkgs.linuxPackages_latest; + boot.blacklistedKernelModules = [ "nouveau" ]; + boot.kernelParams = [ "module_blacklist=i915" ]; networking = { hostName = "myrtle"; @@ -64,6 +66,9 @@ # turbo config.boot.kernelPackages.turbostat + config.boot.kernelPackages.nvidia_x11 + + xdotool ]; @@ -95,6 +100,7 @@ enable = true; powerOnBoot = true; }; + nvidia.package = config.boot.kernelPackages.nvidiaPackages.latest; }; @@ -102,7 +108,7 @@ xserver = { enable = true; layout = "us"; - # videoDrivers = [ "nvidia" ]; + videoDrivers = [ "nvidia" ]; displayManager.startx.enable = true; libinput.enable = true; }; @@ -119,11 +125,13 @@ ''; auto-cpufreq.enable = true; + thermald.enable = true; batteryNotifier = { enable = true; notifyCapacity = 20; suspendCapacity = 5; }; + touchegg.enable = true; }; powerManagement = { -- cgit v1.2.3