From 479f5f4ae6d63eb40ec3fab36fb4730296e51d57 Mon Sep 17 00:00:00 2001 From: Cray Elliott Date: Sun, 19 Apr 2015 15:17:23 -0700 Subject: [PATCH] fix rebuild when using ntfs partitions needed to define inInitrd, used vfat.nix as a template --- nixos/modules/tasks/filesystems/ntfs.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nixos/modules/tasks/filesystems/ntfs.nix b/nixos/modules/tasks/filesystems/ntfs.nix index 32cf07098dcc..503ec64f9a92 100644 --- a/nixos/modules/tasks/filesystems/ntfs.nix +++ b/nixos/modules/tasks/filesystems/ntfs.nix @@ -2,6 +2,12 @@ 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) {