lol

Include cifs-utils only when needed

Issue #7117.

+2 -2
+1 -1
nixos/modules/profiles/base.nix
··· 50 50 ]; 51 51 52 52 # Include support for various filesystems. 53 - boot.supportedFilesystems = [ "btrfs" "reiserfs" "vfat" "f2fs" "zfs" "ntfs" ]; 53 + boot.supportedFilesystems = [ "btrfs" "reiserfs" "vfat" "f2fs" "zfs" "ntfs" "cifs" ]; 54 54 55 55 }
+1 -1
nixos/modules/tasks/filesystems/cifs.nix
··· 11 11 { 12 12 config = { 13 13 14 - system.fsPackages = [ pkgs.cifs_utils ]; 14 + system.fsPackages = mkIf (any (fs: fs == "cifs") config.boot.supportedFilesystems) [ pkgs.cifs_utils ]; 15 15 16 16 boot.initrd.availableKernelModules = mkIf inInitrd 17 17 [ "cifs" "nls_utf8" "hmac" "md4" "ecb" "des_generic" "sha256" ];