summary refs log tree commit diff
path: root/nixos/modules/tasks/swraid.nix
diff options
context:
space:
mode:
authorLuca Bruno <lethalman88@gmail.com>2014-11-10 22:08:10 +0100
committerLuca Bruno <lethalman88@gmail.com>2014-11-10 22:19:43 +0100
commit31df4f70afbe0ca3e5fa1f52f4a9c4c28f23c61a (patch)
tree0b16020b448ea469157292d99032a45505149c92 /nixos/modules/tasks/swraid.nix
parent83cecbdcbcf1fa2d933a4bd2925e086bb7972008 (diff)
downloadnixpkgs-31df4f70afbe0ca3e5fa1f52f4a9c4c28f23c61a.tar
nixpkgs-31df4f70afbe0ca3e5fa1f52f4a9c4c28f23c61a.tar.gz
nixpkgs-31df4f70afbe0ca3e5fa1f52f4a9c4c28f23c61a.tar.bz2
nixpkgs-31df4f70afbe0ca3e5fa1f52f4a9c4c28f23c61a.tar.lz
nixpkgs-31df4f70afbe0ca3e5fa1f52f4a9c4c28f23c61a.tar.xz
nixpkgs-31df4f70afbe0ca3e5fa1f52f4a9c4c28f23c61a.tar.zst
nixpkgs-31df4f70afbe0ca3e5fa1f52f4a9c4c28f23c61a.zip
nixos: Add boot.initrd.extraUdevRulesCommands
Diffstat (limited to 'nixos/modules/tasks/swraid.nix')
-rw-r--r--nixos/modules/tasks/swraid.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/modules/tasks/swraid.nix b/nixos/modules/tasks/swraid.nix
index 3b4aa9875f2..8e972891971 100644
--- a/nixos/modules/tasks/swraid.nix
+++ b/nixos/modules/tasks/swraid.nix
@@ -8,4 +8,8 @@
 
   boot.initrd.availableKernelModules = [ "md_mod" "raid0" "raid1" "raid456" ];
 
+  boot.initrd.extraUdevRulesCommands = ''
+    cp -v ${pkgs.mdadm}/lib/udev/rules.d/*.rules $out/
+  '';
+
 }