parent
c0f70b4694
commit
57b05765c9
|
@ -45,9 +45,6 @@ with lib;
|
||||||
# Get a console as soon as the initrd loads fbcon on EFI boot.
|
# Get a console as soon as the initrd loads fbcon on EFI boot.
|
||||||
boot.initrd.kernelModules = [ "fbcon" ];
|
boot.initrd.kernelModules = [ "fbcon" ];
|
||||||
|
|
||||||
# Add support for cow filesystems and their utilities
|
|
||||||
boot.supportedFilesystems = [ "zfs" "btrfs" ];
|
|
||||||
|
|
||||||
# Configure host id for ZFS to work
|
# Configure host id for ZFS to work
|
||||||
networking.hostId = "8425e349";
|
networking.hostId = "8425e349";
|
||||||
|
|
||||||
|
|
|
@ -430,6 +430,7 @@
|
||||||
./tasks/filesystems/f2fs.nix
|
./tasks/filesystems/f2fs.nix
|
||||||
./tasks/filesystems/jfs.nix
|
./tasks/filesystems/jfs.nix
|
||||||
./tasks/filesystems/nfs.nix
|
./tasks/filesystems/nfs.nix
|
||||||
|
./tasks/filesystems/ntfs.nix
|
||||||
./tasks/filesystems/reiserfs.nix
|
./tasks/filesystems/reiserfs.nix
|
||||||
./tasks/filesystems/unionfs-fuse.nix
|
./tasks/filesystems/unionfs-fuse.nix
|
||||||
./tasks/filesystems/vfat.nix
|
./tasks/filesystems/vfat.nix
|
||||||
|
|
|
@ -50,6 +50,6 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
# Include support for various filesystems.
|
# Include support for various filesystems.
|
||||||
boot.supportedFilesystems = [ "btrfs" "reiserfs" "vfat" "f2fs" ];
|
boot.supportedFilesystems = [ "btrfs" "reiserfs" "vfat" "f2fs" "zfs" "ntfs" ];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -137,9 +137,7 @@ in
|
||||||
# Add the mount helpers to the system path so that `mount' can find them.
|
# Add the mount helpers to the system path so that `mount' can find them.
|
||||||
system.fsPackages = [ pkgs.dosfstools ];
|
system.fsPackages = [ pkgs.dosfstools ];
|
||||||
|
|
||||||
environment.systemPackages =
|
environment.systemPackages = [ pkgs.fuse ] ++ config.system.fsPackages;
|
||||||
[ pkgs.ntfs3g pkgs.fuse ]
|
|
||||||
++ config.system.fsPackages;
|
|
||||||
|
|
||||||
environment.etc.fstab.text =
|
environment.etc.fstab.text =
|
||||||
let
|
let
|
||||||
|
|
16
nixos/modules/tasks/filesystems/ntfs.nix
Normal file
16
nixos/modules/tasks/filesystems/ntfs.nix
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
{
|
||||||
|
config = mkIf (any (fs: fs == "ntfs" || fs == "ntfs-3g") config.boot.supportedFilesystems) {
|
||||||
|
|
||||||
|
system.fsPackages = [ pkgs.ntfs3g ];
|
||||||
|
|
||||||
|
boot.initrd.kernelModules = mkIf inInitrd [ "jfs" ];
|
||||||
|
|
||||||
|
boot.initrd.extraUtilsCommands = mkIf inInitrd ''
|
||||||
|
copy_bin_and_libs ${pkgs.jfsutils}/sbin/fsck.jfs
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue