{ lib, ... }: let defaultLocalOptions = [ "compress=zstd" # "autodefrag" "nofail" # "x-systemd.automount" # "auto" "rw" ]; in { boot.initrd = { supportedFilesystems = { bcachefs = true; }; clevis = { enable = lib.mkForce true; devices = { "/dev/disk/by-uuid/6ec88702-d536-494c-bdfd-3cc5c8cdc505".secretFile = ../../../secrets/hdd.jwe; # config.sops.secrets."disk-key".path; }; }; }; fileSystems = { "/media/matt/data" = { device = "/dev/disk/by-uuid/f851d21e-27b3-4353-aa19-590d244db6e5"; fsType = "bcachefs"; options = [ "noatime" ] ++ defaultLocalOptions; }; "/media/matt/slow" = { device = "/dev/disk/by-uuid/6ec88702-d536-494c-bdfd-3cc5c8cdc505"; fsType = "bcachefs"; options = [ "noatime" ] ++ defaultLocalOptions; }; # # Network shares # "/media/nas/backup" = { # device = "//10.0.1.3/Backup"; # fsType = "cifs"; # options = defaultNetworkShareOptions; # }; # "/media/nas/isos" = { # device = "//10.0.1.3/isos"; # fsType = "cifs"; # options = defaultNetworkShareOptions; # }; # "/media/nas/3d_printer" = { # device = "//10.0.1.3/3d_printer"; # fsType = "cifs"; # options = defaultNetworkShareOptions; # }; }; }