aboutsummaryrefslogtreecommitdiff
path: root/hosts/myrtle
diff options
context:
space:
mode:
authorAkshay <[email protected]>2023-01-24 16:57:44 +0000
committerAkshay <[email protected]>2023-01-24 16:57:44 +0000
commite6ee8f7a83586d11f55a03f1b7cec9d14311ddf8 (patch)
tree2eb899fa0791cd382b535cfb9214f3467378dcf3 /hosts/myrtle
parentdcd6c324fbb75d9861bc07029d9cfb14aafcb394 (diff)
enable graphics drivers
Diffstat (limited to 'hosts/myrtle')
-rw-r--r--hosts/myrtle/configuration.nix10
1 files changed, 9 insertions, 1 deletions
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 @@
10 boot.loader.systemd-boot.enable = true; 10 boot.loader.systemd-boot.enable = true;
11 boot.loader.efi.canTouchEfiVariables = true; 11 boot.loader.efi.canTouchEfiVariables = true;
12 boot.kernelPackages = pkgs.linuxPackages_latest; 12 boot.kernelPackages = pkgs.linuxPackages_latest;
13 boot.blacklistedKernelModules = [ "nouveau" ];
14 boot.kernelParams = [ "module_blacklist=i915" ];
13 15
14 networking = { 16 networking = {
15 hostName = "myrtle"; 17 hostName = "myrtle";
@@ -64,6 +66,9 @@
64 66
65 # turbo 67 # turbo
66 config.boot.kernelPackages.turbostat 68 config.boot.kernelPackages.turbostat
69 config.boot.kernelPackages.nvidia_x11
70
71 xdotool
67 ]; 72 ];
68 73
69 74
@@ -95,6 +100,7 @@
95 enable = true; 100 enable = true;
96 powerOnBoot = true; 101 powerOnBoot = true;
97 }; 102 };
103 nvidia.package = config.boot.kernelPackages.nvidiaPackages.latest;
98 }; 104 };
99 105
100 106
@@ -102,7 +108,7 @@
102 xserver = { 108 xserver = {
103 enable = true; 109 enable = true;
104 layout = "us"; 110 layout = "us";
105 # videoDrivers = [ "nvidia" ]; 111 videoDrivers = [ "nvidia" ];
106 displayManager.startx.enable = true; 112 displayManager.startx.enable = true;
107 libinput.enable = true; 113 libinput.enable = true;
108 }; 114 };
@@ -119,11 +125,13 @@
119 ''; 125 '';
120 126
121 auto-cpufreq.enable = true; 127 auto-cpufreq.enable = true;
128 thermald.enable = true;
122 batteryNotifier = { 129 batteryNotifier = {
123 enable = true; 130 enable = true;
124 notifyCapacity = 20; 131 notifyCapacity = 20;
125 suspendCapacity = 5; 132 suspendCapacity = 5;
126 }; 133 };
134 touchegg.enable = true;
127 }; 135 };
128 136
129 powerManagement = { 137 powerManagement = {