nixos: move bcache udev rule in a new bcache.nix module

This commit is contained in:
Luca Bruno
2014-11-10 22:19:43 +01:00
parent 31df4f70af
commit b77d166b17
3 changed files with 12 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
{ config, pkgs, ... }:
{
environment.systemPackages = [ pkgs.bcache-tools ];
boot.initrd.extraUdevRulesCommands = ''
cp -v ${pkgs.bcache-tools}/lib/udev/rules.d/*.rules $out/
'';
}