kmod-debian-aliases: init at 21-1

This commit is contained in:
Mathnerd314 2015-09-05 17:11:03 -06:00 committed by Vladimír Čunát
parent 667f26cabf
commit 87012187b2
4 changed files with 29 additions and 5 deletions

View File

@ -85,11 +85,7 @@ with lib;
'')}
${config.boot.extraModprobeConfig}
'';
environment.etc."modprobe.d/usb-load-ehci-first.conf".text =
''
softdep uhci_hcd pre: ehci_hcd
softdep ohci_hcd pre: ehci_hcd
'';
environment.etc."modprobe.d/debian.conf".source = pkgs.kmod-debian-aliases;
environment.systemPackages = [ config.system.sbin.modprobe pkgs.kmod ];

View File

@ -241,6 +241,9 @@ let
};
symlink = "/etc/modprobe.d/ubuntu.conf";
}
{ object = pkgs.kmod-debian-aliases;
symlink = "/etc/modprobe.d/debian.conf";
}
];
};

View File

@ -0,0 +1,23 @@
{ stdenv, fetchurl, lib }:
let
version = "21-1";
in
stdenv.mkDerivation {
name = "kmod-debian-aliases-${version}.conf";
src = fetchurl {
url = "mirror://debian/pool/main/k/kmod/kmod_${version}.debian.tar.xz";
sha256 = "1abpf8g3yx972by2xpmz6dwwyc1pgh6gjbvrivmrsws69vs0xjsy";
};
installPhase = ''
patch -i patches/aliases_conf
cp aliases.conf $out
'';
meta = {
homepage = https://packages.debian.org/source/sid/kmod;
description = "Linux configuration file for modprobe";
maintainers = with lib.maintainers; [ mathnerd314 ];
};
}

View File

@ -10044,6 +10044,8 @@ let
kmod-blacklist-ubuntu = callPackage ../os-specific/linux/kmod-blacklist-ubuntu { };
kmod-debian-aliases = callPackage ../os-specific/linux/kmod-debian-aliases { };
kvm = qemu_kvm;
libcap = callPackage ../os-specific/linux/libcap { };