aboutsummaryrefslogtreecommitdiff
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
parentdcd6c324fbb75d9861bc07029d9cfb14aafcb394 (diff)
enable graphics drivers
-rw-r--r--hosts/myrtle/configuration.nix10
-rw-r--r--services/default.nix4
-rw-r--r--services/picom.nix2
3 files changed, 12 insertions, 4 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 = {
diff --git a/services/default.nix b/services/default.nix
index 4e51e62..b2a39bb 100644
--- a/services/default.nix
+++ b/services/default.nix
@@ -8,10 +8,10 @@
8 8
9 imports = [ 9 imports = [
10 ./dunst.nix 10 ./dunst.nix
11 # ./picom.nix 11 ./picom.nix
12 ./redshift.nix 12 ./redshift.nix
13 ./sxhkd.nix 13 ./sxhkd.nix
14 # ./bsync.nix 14 # ./mbsync.nix
15 ]; 15 ];
16 16
17 services = { 17 services = {
diff --git a/services/picom.nix b/services/picom.nix
index 07f8f58..d298424 100644
--- a/services/picom.nix
+++ b/services/picom.nix
@@ -6,7 +6,7 @@
6{ 6{
7 services.picom = { 7 services.picom = {
8 enable = true; 8 enable = true;
9 backend = "xrender"; 9 backend = "glx";
10 fade = true; 10 fade = true;
11 fadeDelta = 10; 11 fadeDelta = 10;
12 fadeSteps = [ 0.04 0.04 ]; 12 fadeSteps = [ 0.04 0.04 ];