Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

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

+12 -1
+1
nixos/modules/module-list.nix
··· 360 360 ./system/boot/tmp.nix 361 361 ./system/etc/etc.nix 362 362 ./system/upstart/upstart.nix 363 + ./tasks/bcache.nix 363 364 ./tasks/cpu-freq.nix 364 365 ./tasks/encrypted-devices.nix 365 366 ./tasks/filesystems.nix
-1
nixos/modules/system/boot/stage-1.nix
··· 127 127 cp -v ${udev}/lib/udev/rules.d/60-persistent-storage.rules $out/ 128 128 cp -v ${udev}/lib/udev/rules.d/80-drivers.rules $out/ 129 129 cp -v ${pkgs.lvm2}/lib/udev/rules.d/*.rules $out/ 130 - cp -v ${pkgs.bcache-tools}/lib/udev/rules.d/*.rules $out/ 131 130 ${config.boot.initrd.extraUdevRulesCommands} 132 131 133 132 for i in $out/*.rules; do
+11
nixos/modules/tasks/bcache.nix
··· 1 + { config, pkgs, ... }: 2 + 3 + { 4 + 5 + environment.systemPackages = [ pkgs.bcache-tools ]; 6 + 7 + boot.initrd.extraUdevRulesCommands = '' 8 + cp -v ${pkgs.bcache-tools}/lib/udev/rules.d/*.rules $out/ 9 + ''; 10 + 11 + }