summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/desktop.nix7
-rw-r--r--modules/nvidia.nix6
2 files changed, 6 insertions, 7 deletions
diff --git a/modules/desktop.nix b/modules/desktop.nix
index f819186..b0028de 100644
--- a/modules/desktop.nix
+++ b/modules/desktop.nix
@@ -9,13 +9,6 @@
phoronix-test-suite
];
- # Fix "graphics reset" issue with nvidia GPU
- # See section 10 of https://wiki.archlinux.org/title/NVIDIA/Tips_and_tricks
- boot.extraModprobeConfig = ''
- options nvidia NVreg_PreserveVideoMemoryAllocations=1
- '';
-
-
# Automaticaly mount C drive
fileSystems."/mnt/c" = {
device = "/dev/nvme1n1p4";
diff --git a/modules/nvidia.nix b/modules/nvidia.nix
index 9d052ad..0bc9b32 100644
--- a/modules/nvidia.nix
+++ b/modules/nvidia.nix
@@ -1,5 +1,11 @@
{ config, ... }: {
+ # Fix "graphics reset" issue with nvidia GPU
+ # See section 10 of https://wiki.archlinux.org/title/NVIDIA/Tips_and_tricks
+ boot.extraModprobeConfig = ''
+ options nvidia NVreg_PreserveVideoMemoryAllocations=1
+ '';
+
# Enable OpenGL
hardware.graphics = {
enable = true;