nixos-config/modules/system/devices/disks/filesystems/default.nix

23 lines
535 B
Nix

{ config, lib, ... }:
{
boot = {
supportedFilesystems = {
ntfs = builtins.elem "pc" config.system.nixos.tags;
zfs = builtins.elem "server" config.system.nixos.tags;
};
swraid = {
enable = builtins.elem "server" config.system.nixos.tags;
mdadmConf = "MAILADDR contact@nixfox.ca";
};
};
services = {
btrfs.autoScrub = {
enable = (config.fileSystems."/".fsType == "btrfs");
interval = "weekly";
};
fstrim.enable = true;
};
programs.fuse.userAllowOther = true;
}