tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
Include cifs-utils only when needed
Issue #7117.
Eelco Dolstra
11 years ago
2b6d011b
1cb5583c
+2
-2
2 changed files
expand all
collapse all
unified
split
nixos
modules
profiles
base.nix
tasks
filesystems
cifs.nix
+1
-1
nixos/modules/profiles/base.nix
reviewed
···
50
50
];
51
51
52
52
# Include support for various filesystems.
53
53
-
boot.supportedFilesystems = [ "btrfs" "reiserfs" "vfat" "f2fs" "zfs" "ntfs" ];
53
53
+
boot.supportedFilesystems = [ "btrfs" "reiserfs" "vfat" "f2fs" "zfs" "ntfs" "cifs" ];
54
54
55
55
}
+1
-1
nixos/modules/tasks/filesystems/cifs.nix
reviewed
···
11
11
{
12
12
config = {
13
13
14
14
-
system.fsPackages = [ pkgs.cifs_utils ];
14
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" ];