File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
nixos/modules/system/boot Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ with lib;
1111 default = true ;
1212 } ;
1313
14+ boot . modprobeConfig . useUbuntuModuleBlacklist = mkEnableOption "Ubuntu distro's module blacklist" // {
15+ default = true ;
16+ } ;
17+
1418 boot . blacklistedKernelModules = mkOption {
1519 type = types . listOf types . str ;
1620 default = [ ] ;
@@ -43,7 +47,9 @@ with lib;
4347
4448 config = mkIf config . boot . modprobeConfig . enable {
4549
46- environment . etc . "modprobe.d/ubuntu.conf" . source = "${ pkgs . kmod-blacklist-ubuntu } /modprobe.conf" ;
50+ environment . etc . "modprobe.d/ubuntu.conf" = mkIf config . boot . modprobeConfig . useUbuntuModuleBlacklist {
51+ source = "${ pkgs . kmod-blacklist-ubuntu } /modprobe.conf" ;
52+ } ;
4753
4854 environment . etc . "modprobe.d/nixos.conf" . text =
4955 ''
You can’t perform that action at this time.
0 commit comments