git.iko.soy/typeable/nixpkgs
on master help sign in
Don't include ntfs-3g by default

Issue #7117.

commit57b05765c968c1ad5245c59513d11d679ed7130d authorEelco Dolstra <eelco.dolstra@logicblox.com> dateSun 19 Apr 2015, 21:27 (12 years ago) parentc0f70b4
5 files changed+19−7
nixos/modules/installer/cd-dvd/installation-cd-base.nix−3 nixos/modules/module-list.nix+1 nixos/modules/profiles/base.nix+1−1 nixos/modules/tasks/filesystems.nix+1−3 nixos/modules/tasks/filesystems/ntfs.nix+16
nixos/modules/installer/cd-dvd/installation-cd-base.nix−3
@@ -45,9 +45,6 @@ with lib;
4545 # Get a console as soon as the initrd loads fbcon on EFI boot.
4646 boot.initrd.kernelModules = [ "fbcon" ];
4747
48− # Add support for cow filesystems and their utilities
49− boot.supportedFilesystems = [ "zfs" "btrfs" ];
50−
5148 # Configure host id for ZFS to work
5249 networking.hostId = "8425e349";
5350
nixos/modules/module-list.nix+1
@@ -430,6 +430,7 @@
430430 ./tasks/filesystems/f2fs.nix
431431 ./tasks/filesystems/jfs.nix
432432 ./tasks/filesystems/nfs.nix
433+ ./tasks/filesystems/ntfs.nix
433434 ./tasks/filesystems/reiserfs.nix
434435 ./tasks/filesystems/unionfs-fuse.nix
435436 ./tasks/filesystems/vfat.nix
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" ];
53+ boot.supportedFilesystems = [ "btrfs" "reiserfs" "vfat" "f2fs" "zfs" "ntfs" ];
5454
5555}
nixos/modules/tasks/filesystems.nix+1−3
@@ -137,9 +137,7 @@ in
137137 # Add the mount helpers to the system path so that `mount' can find them.
138138 system.fsPackages = [ pkgs.dosfstools ];
139139
140− environment.systemPackages =
141− [ pkgs.ntfs3g pkgs.fuse ]
142− ++ config.system.fsPackages;
140+ environment.systemPackages = [ pkgs.fuse ] ++ config.system.fsPackages;
143141
144142 environment.etc.fstab.text =
145143 let
nixos/modules/tasks/filesystems/ntfs.nixnew file+16
@@ -0,0 +1,16 @@
1+{ config, lib, pkgs, ... }:
2+
3+with lib;
4+
5+{
6+ config = mkIf (any (fs: fs == "ntfs" || fs == "ntfs-3g") config.boot.supportedFilesystems) {
7+
8+ system.fsPackages = [ pkgs.ntfs3g ];
9+
10+ boot.initrd.kernelModules = mkIf inInitrd [ "jfs" ];
11+
12+ boot.initrd.extraUtilsCommands = mkIf inInitrd ''
13+ copy_bin_and_libs ${pkgs.jfsutils}/sbin/fsck.jfs
14+ '';
15+ };
16+}