2009-10-12 20:36:19 +04:00
|
|
|
{ config, pkgs, ... }:
|
2009-03-06 15:27:30 +03:00
|
|
|
|
2007-01-11 03:40:28 +03:00
|
|
|
{
|
|
|
|
|
2010-05-17 00:40:04 +04:00
|
|
|
environment.systemPackages = [ pkgs.mdadm ];
|
2011-09-14 22:20:50 +04:00
|
|
|
|
2010-05-17 00:40:04 +04:00
|
|
|
services.udev.packages = [ pkgs.mdadm ];
|
2009-12-29 13:04:54 +03:00
|
|
|
|
2010-05-17 00:40:04 +04:00
|
|
|
boot.initrd.availableKernelModules = [ "md_mod" "raid0" "raid1" "raid456" ];
|
2011-09-14 22:20:50 +04:00
|
|
|
|
2014-11-11 00:08:10 +03:00
|
|
|
boot.initrd.extraUdevRulesCommands = ''
|
|
|
|
cp -v ${pkgs.mdadm}/lib/udev/rules.d/*.rules $out/
|
|
|
|
'';
|
|
|
|
|
2007-01-11 03:40:28 +03:00
|
|
|
}
|