mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
a049d84229
5.7+ comes with a native exfat implementation, exfatprogs should be used instead. The exfat package puts a "mount.exfat" binary in the path, which causes mount to prefer the FUSE version to the non-fuse one. There's no way to disable the binary, so switch to exfatprogs.
13 lines
282 B
Nix
13 lines
282 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
config = mkIf (any (fs: fs == "exfat") config.boot.supportedFilesystems) {
|
|
system.fsPackages = if config.boot.kernelPackages.kernelOlder "5.7" then [
|
|
pkgs.exfat # FUSE
|
|
] else [
|
|
pkgs.exfatprogs # non-FUSE
|
|
];
|
|
};
|
|
}
|