nixpkgs-suyu/nixos/modules/tasks/bcache.nix

11 lines
196 B
Nix

{ config, pkgs, ... }:
{
environment.systemPackages = [ pkgs.bcache-tools ];
boot.initrd.extraUdevRulesCommands = ''
cp -v ${pkgs.bcache-tools}/lib/udev/rules.d/*.rules $out/
'';
}