summary refs log tree commit diff
diff options
context:
space:
mode:
authorCray Elliott <MP2E@archlinux.us>2015-04-19 15:17:23 -0700
committerCray Elliott <MP2E@archlinux.us>2015-04-19 15:17:23 -0700
commit479f5f4ae6d63eb40ec3fab36fb4730296e51d57 (patch)
tree5f429811c74e08a624bce707b8d396a572b786d6
parentb6944026c61fa7b340e2f6746cd93118307b7c2f (diff)
downloadnixpkgs-479f5f4ae6d63eb40ec3fab36fb4730296e51d57.tar
nixpkgs-479f5f4ae6d63eb40ec3fab36fb4730296e51d57.tar.gz
nixpkgs-479f5f4ae6d63eb40ec3fab36fb4730296e51d57.tar.bz2
nixpkgs-479f5f4ae6d63eb40ec3fab36fb4730296e51d57.tar.lz
nixpkgs-479f5f4ae6d63eb40ec3fab36fb4730296e51d57.tar.xz
nixpkgs-479f5f4ae6d63eb40ec3fab36fb4730296e51d57.tar.zst
nixpkgs-479f5f4ae6d63eb40ec3fab36fb4730296e51d57.zip
fix rebuild when using ntfs partitions
needed to define inInitrd, used vfat.nix as a template
-rw-r--r--nixos/modules/tasks/filesystems/ntfs.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/nixos/modules/tasks/filesystems/ntfs.nix b/nixos/modules/tasks/filesystems/ntfs.nix
index 32cf07098dc..503ec64f9a9 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) {