mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
Added boot.modprobeConfig.useUbuntuModuleBlacklist
. (#290330)
This commit is contained in:
commit
cd519af995
1 changed files with 7 additions and 1 deletions
|
@ -11,6 +11,10 @@ with lib;
|
||||||
default = true;
|
default = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
boot.modprobeConfig.useUbuntuModuleBlacklist = mkEnableOption "Ubuntu distro's module blacklist" // {
|
||||||
|
default = true;
|
||||||
|
};
|
||||||
|
|
||||||
boot.blacklistedKernelModules = mkOption {
|
boot.blacklistedKernelModules = mkOption {
|
||||||
type = types.listOf types.str;
|
type = types.listOf types.str;
|
||||||
default = [];
|
default = [];
|
||||||
|
@ -43,7 +47,9 @@ with lib;
|
||||||
|
|
||||||
config = mkIf config.boot.modprobeConfig.enable {
|
config = mkIf config.boot.modprobeConfig.enable {
|
||||||
|
|
||||||
environment.etc."modprobe.d/ubuntu.conf".source = "${pkgs.kmod-blacklist-ubuntu}/modprobe.conf";
|
environment.etc."modprobe.d/ubuntu.conf" = mkIf config.boot.modprobeConfig.useUbuntuModuleBlacklist {
|
||||||
|
source = "${pkgs.kmod-blacklist-ubuntu}/modprobe.conf";
|
||||||
|
};
|
||||||
|
|
||||||
environment.etc."modprobe.d/nixos.conf".text =
|
environment.etc."modprobe.d/nixos.conf".text =
|
||||||
''
|
''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue