Include cifs-utils only when needed
Issue #7117.
commit2b6d011bec52a38268410378c24b89aa5a024dbc
authorEelco Dolstra <eelco.dolstra@logicblox.com>
dateSun 19 Apr 2015, 21:45 (12 years ago)
parent1cb5583
nixos/modules/profiles/base.nix+1−1
@@ -50,6 +50,6 @@
5050 ];
5151
5252 # Include support for various filesystems.
53− boot.supportedFilesystems = [ "btrfs" "reiserfs" "vfat" "f2fs" "zfs" "ntfs" ];
53+ boot.supportedFilesystems = [ "btrfs" "reiserfs" "vfat" "f2fs" "zfs" "ntfs" "cifs" ];
5454
5555}
nixos/modules/tasks/filesystems/cifs.nix+1−1
@@ -11,7 +11,7 @@ in
1111{
1212 config = {
1313
14− system.fsPackages = [ pkgs.cifs_utils ];
14+ system.fsPackages = mkIf (any (fs: fs == "cifs") config.boot.supportedFilesystems) [ pkgs.cifs_utils ];
1515
1616 boot.initrd.availableKernelModules = mkIf inInitrd
1717 [ "cifs" "nls_utf8" "hmac" "md4" "ecb" "des_generic" "sha256" ];