diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2020-02-08 22:41:01 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2020-02-08 22:41:01 +0100 |
commit | fadab4e5c3488fd4552860ed50885d5acb5e635d (patch) | |
tree | d6a571f342cef47d10956f8e34b9892c3f555413 | |
parent | a16f9e44ae73d07b8486ddfe67d44f2a613b8677 (diff) | |
download | nixos-fadab4e5c3488fd4552860ed50885d5acb5e635d.tar nixos-fadab4e5c3488fd4552860ed50885d5acb5e635d.tar.gz nixos-fadab4e5c3488fd4552860ed50885d5acb5e635d.tar.bz2 nixos-fadab4e5c3488fd4552860ed50885d5acb5e635d.tar.xz nixos-fadab4e5c3488fd4552860ed50885d5acb5e635d.zip |
...
-rw-r--r-- | sif.nix | 5 | ||||
-rw-r--r-- | sif/boot.nix | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -330,6 +330,11 @@ | |||
330 | 330 | ||
331 | nvidia = { | 331 | nvidia = { |
332 | modesetting.enable = true; | 332 | modesetting.enable = true; |
333 | optimus_prime = { | ||
334 | enable = true; | ||
335 | nvidiaBusId = "PCI:1:0.0"; | ||
336 | intelBusId = "PCI:0:2.0"; | ||
337 | }; | ||
333 | }; | 338 | }; |
334 | 339 | ||
335 | opengl.driSupport32Bit = true; | 340 | opengl.driSupport32Bit = true; |
diff --git a/sif/boot.nix b/sif/boot.nix index 1a6155b3..d903b16f 100644 --- a/sif/boot.nix +++ b/sif/boot.nix | |||
@@ -11,6 +11,8 @@ | |||
11 | kernelModules = [ "dm-raid" ]; | 11 | kernelModules = [ "dm-raid" ]; |
12 | }; | 12 | }; |
13 | 13 | ||
14 | blacklistedKernelModules = [ "nouveau" ]; | ||
15 | |||
14 | # Use the systemd-boot EFI boot loader. | 16 | # Use the systemd-boot EFI boot loader. |
15 | loader = { | 17 | loader = { |
16 | systemd-boot.enable = true; | 18 | systemd-boot.enable = true; |