summary refs log tree commit diff
path: root/nixos/modules/tasks
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-04-19 21:45:01 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-04-19 22:06:45 +0200
commit2b6d011bec52a38268410378c24b89aa5a024dbc (patch)
treeced8e5ea5f4896ac0e64d0a3f236629775951b32 /nixos/modules/tasks
parent1cb5583c0599c7a164019badc8f093acd7e4488b (diff)
downloadnixpkgs-2b6d011bec52a38268410378c24b89aa5a024dbc.tar
nixpkgs-2b6d011bec52a38268410378c24b89aa5a024dbc.tar.gz
nixpkgs-2b6d011bec52a38268410378c24b89aa5a024dbc.tar.bz2
nixpkgs-2b6d011bec52a38268410378c24b89aa5a024dbc.tar.lz
nixpkgs-2b6d011bec52a38268410378c24b89aa5a024dbc.tar.xz
nixpkgs-2b6d011bec52a38268410378c24b89aa5a024dbc.tar.zst
nixpkgs-2b6d011bec52a38268410378c24b89aa5a024dbc.zip
Include cifs-utils only when needed
Issue #7117.
Diffstat (limited to 'nixos/modules/tasks')
-rw-r--r--nixos/modules/tasks/filesystems/cifs.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/tasks/filesystems/cifs.nix b/nixos/modules/tasks/filesystems/cifs.nix
index 3932b5c9acf..a928fcae415 100644
--- a/nixos/modules/tasks/filesystems/cifs.nix
+++ b/nixos/modules/tasks/filesystems/cifs.nix
@@ -11,7 +11,7 @@ in
 {
   config = {
 
-    system.fsPackages = [ pkgs.cifs_utils ];
+    system.fsPackages = mkIf (any (fs: fs == "cifs") config.boot.supportedFilesystems) [ pkgs.cifs_utils ];
 
     boot.initrd.availableKernelModules = mkIf inInitrd
       [ "cifs" "nls_utf8" "hmac" "md4" "ecb" "des_generic" "sha256" ];