0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 06:00:33 +03:00

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

This commit is contained in:
Luca Bruno 2014-11-10 22:09:34 +01:00
parent 31df4f70af
commit b77d166b17
3 changed files with 12 additions and 1 deletions

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/
'';
}