Logo
Explore Help
Sign In
talexander/nixpkgs
1
0
Fork 0
You've already forked nixpkgs
Code Issues Pull Requests Releases Activity
nixpkgs/nixos/modules/tasks/filesystems/exfat.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
273 B
Nix
Raw Normal View History

nixos: add support for exfat filesystem
2015-05-27 18:58:13 +03:00
{ config, lib, pkgs, ... }:
with lib;
{
nixos/filesystems: make supportedFilesystems an attrset this lets us *dis*able filesystem explicitly, as is required by e.g. the zfs-less installer images. currently that specifically is only easily possible by adding an overlay that stubs out `zfs`, with the obvious side-effect of also removing tooling that could run without the kernel module loaded.
2024-02-18 23:35:17 +01:00
config = mkIf (config.boot.supportedFilesystems.exfat or false) {
nixos/filesystems/exfat: use "exfatprogs" instead of "exfat" if kernel > 5.7 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.
2021-07-01 00:11:35 +10:00
system.fsPackages = if config.boot.kernelPackages.kernelOlder "5.7" then [
pkgs.exfat # FUSE
] else [
pkgs.exfatprogs # non-FUSE
];
nixos: add support for exfat filesystem
2015-05-27 18:58:13 +03:00
};
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.1 Page: 9638ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API