summary refs log tree commit diff
diff options
context:
space:
mode:
authorBjørn Forsman <bjorn.forsman@gmail.com>2017-06-01 22:45:41 +0200
committerBjørn Forsman <bjorn.forsman@gmail.com>2017-06-10 17:10:49 +0200
commit5b48368386864af78658b7c18608df57f8e8a386 (patch)
treef70ff50522022c5c7095c056e287cc229885fc78
parent581226cfb456b4c116594f1b79f45945703a4a4c (diff)
downloadnixpkgs-5b48368386864af78658b7c18608df57f8e8a386.tar
nixpkgs-5b48368386864af78658b7c18608df57f8e8a386.tar.gz
nixpkgs-5b48368386864af78658b7c18608df57f8e8a386.tar.bz2
nixpkgs-5b48368386864af78658b7c18608df57f8e8a386.tar.lz
nixpkgs-5b48368386864af78658b7c18608df57f8e8a386.tar.xz
nixpkgs-5b48368386864af78658b7c18608df57f8e8a386.tar.zst
nixpkgs-5b48368386864af78658b7c18608df57f8e8a386.zip
nixos/bcache: add services.udev.packages = [ bcache-tools ]
Adds /dev/disk/by-{id,label}/* symlinks for bcache device nodes, in the
final rootfs.

Symlinks will only be created for bcache devices that contain
filesystems. So if you have a blank bcache device or run LVM on top of
bcache you will not get this kind of symlink.
-rw-r--r--nixos/modules/tasks/bcache.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/tasks/bcache.nix b/nixos/modules/tasks/bcache.nix
index f988ec02af7..3bfdf89e0cf 100644
--- a/nixos/modules/tasks/bcache.nix
+++ b/nixos/modules/tasks/bcache.nix
@@ -4,6 +4,8 @@
 
   environment.systemPackages = [ pkgs.bcache-tools ];
 
+  services.udev.packages = [ pkgs.bcache-tools ];
+
   boot.initrd.extraUdevRulesCommands = ''
     cp -v ${pkgs.bcache-tools}/lib/udev/rules.d/*.rules $out/
   '';