{ config, lib, ... }: let cfg = config.my.fs; in { config = lib.mkIf (cfg.type == "ext4") { fileSystems = { "/" = { inherit (cfg) device; fsType = "ext4"; options = [ "noatime" ]; }; }; }; }