about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2014-02-02 15:51:07 +0100
committerVladimír Čunát <vcunat@gmail.com>2014-02-02 15:51:07 +0100
commitb5a32b39442b60720f00d5a4110069c3195a9a25 (patch)
treee0d16850a34569e43721de03fca995d917dc5c2e /nixos
parentb6e3cd71707471a43cb95bb3bef8f12dd4b479df (diff)
parent5acaa980a510f77fce358bdbe93ab5fa388118fd (diff)
downloadnixlib-b5a32b39442b60720f00d5a4110069c3195a9a25.tar
nixlib-b5a32b39442b60720f00d5a4110069c3195a9a25.tar.gz
nixlib-b5a32b39442b60720f00d5a4110069c3195a9a25.tar.bz2
nixlib-b5a32b39442b60720f00d5a4110069c3195a9a25.tar.lz
nixlib-b5a32b39442b60720f00d5a4110069c3195a9a25.tar.xz
nixlib-b5a32b39442b60720f00d5a4110069c3195a9a25.tar.zst
nixlib-b5a32b39442b60720f00d5a4110069c3195a9a25.zip
Merge #1618: use ubuntu module blacklists by default
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/system/boot/modprobe.nix24
1 files changed, 6 insertions, 18 deletions
diff --git a/nixos/modules/system/boot/modprobe.nix b/nixos/modules/system/boot/modprobe.nix
index 027a7ac99d51..f694fd29dd04 100644
--- a/nixos/modules/system/boot/modprobe.nix
+++ b/nixos/modules/system/boot/modprobe.nix
@@ -68,7 +68,10 @@ with pkgs.lib;
 
   config = mkIf (!config.boot.isContainer) {
 
-    environment.etc = singleton
+    environment.etc = [
+      { source = "${pkgs.kmod-blacklist-ubuntu}/modprobe.conf";
+        target = "modprobe.d/ubuntu.conf";
+      }
       { source = pkgs.writeText "modprobe.conf"
           ''
             ${flip concatMapStrings config.boot.blacklistedKernelModules (name: ''
@@ -77,26 +80,11 @@ with pkgs.lib;
             ${config.boot.extraModprobeConfig}
           '';
         target = "modprobe.d/nixos.conf";
-      };
+      }
+    ];
 
     environment.systemPackages = [ config.system.sbin.modprobe pkgs.kmod ];
 
-    boot.blacklistedKernelModules =
-      [ # This module is for debugging and generates gigantic amounts
-        # of log output, so it should never be loaded automatically.
-        "evbug"
-
-        # This module causes ALSA to occassionally select the wrong
-        # default sound device, and is little more than an annoyance
-        # on modern machines.
-        "snd_pcsp"
-
-        # The cirrusfb module prevents X11 from starting.  FIXME:
-        # Ubuntu blacklists all framebuffer devices because they're
-        # "buggy" and cause suspend problems.  Maybe we should too?
-        "cirrusfb"
-      ];
-
     system.activationScripts.modprobe =
       ''
         # Allow the kernel to find our wrapped modprobe (which searches