mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-27 05:19:43 +01:00
System76 mkDefault
This commit is contained in:
parent
28684889c8
commit
f5a5916b35
1 changed files with 7 additions and 7 deletions
|
@ -6,9 +6,9 @@
|
||||||
boot.initrd.kernelModules = [ "nvidia" ];
|
boot.initrd.kernelModules = [ "nvidia" ];
|
||||||
|
|
||||||
hardware.opengl = {
|
hardware.opengl = {
|
||||||
enable = true;
|
enable = lib.mkDefault true;
|
||||||
driSupport = true;
|
driSupport = lib.mkDefault true;
|
||||||
driSupport32Bit = true;
|
driSupport32Bit = lib.mkDefault true;
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
vaapiVdpau
|
vaapiVdpau
|
||||||
];
|
];
|
||||||
|
@ -18,11 +18,11 @@
|
||||||
|
|
||||||
hardware.nvidia = {
|
hardware.nvidia = {
|
||||||
|
|
||||||
modesetting.enable = true;
|
modesetting.enable = lib.mkDefault true;
|
||||||
|
|
||||||
powerManagement.finegrained = true;
|
powerManagement.finegrained = lib.mkDefault true;
|
||||||
|
|
||||||
nvidiaSettings = true;
|
nvidiaSettings = lib.mkDefault true;
|
||||||
|
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||||
prime = {
|
prime = {
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
nvidiaBusId = "PCI:1:0:0";
|
nvidiaBusId = "PCI:1:0:0";
|
||||||
offload = {
|
offload = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableOffloadCmd = true;
|
enableOffloadCmd = lib.mkDefault true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue