about summary refs log tree commit diff
path: root/nixos/modules/tasks/filesystems/ntfs.nix
blob: ba71e7b30ea85cca1852e9e608b76f3d798f76d1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ config, lib, pkgs, ... }:

with lib;

let

  inInitrd = any (fs: fs == "ntfs") config.boot.initrd.supportedFilesystems;

in

{
  config = mkIf (any (fs: fs == "ntfs" || fs == "ntfs-3g") config.boot.supportedFilesystems) {

    system.fsPackages = [ pkgs.ntfs3g ];

  };
}