feat: create specialization for testing nvk.
This commit is contained in:
parent
2391c71957
commit
b3b0241649
1 changed files with 7 additions and 1 deletions
|
|
@ -64,7 +64,7 @@
|
|||
};
|
||||
|
||||
# Setup nvidia drivers
|
||||
services.xserver.videoDrivers = ["nvidia"];
|
||||
services.xserver.videoDrivers = lib.mkIf (config.specialisation != {}) ["nvidia"];
|
||||
hardware.nvidia = {
|
||||
modesetting.enable = true;
|
||||
open = true;
|
||||
|
|
@ -92,6 +92,12 @@
|
|||
powerManagement.enable = true;
|
||||
};
|
||||
|
||||
specialisation = {
|
||||
nvk.configuration = {
|
||||
hardware.nvidia.open = lib.mkDefault false;
|
||||
};
|
||||
};
|
||||
|
||||
# Enable networking
|
||||
networking.networkmanager = {
|
||||
enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue