jungle/m/common/base/fs.nix

25 lines
401 B
Nix
Raw Normal View History

2023-03-31 18:27:25 +02:00
{ ... }:
{
fileSystems."/" =
{ device = "/dev/disk/by-label/nixos";
fsType = "ext4";
};
2023-09-12 16:39:45 +02:00
# Trim unused blocks weekly
services.fstrim.enable = true;
swapDevices =
[ { device = "/dev/disk/by-label/swap"; }
];
2023-04-03 12:51:44 +02:00
# Tracing
fileSystems."/sys/kernel/tracing" = {
device = "none";
fsType = "tracefs";
2023-03-31 18:27:25 +02:00
};
# Mount a tmpfs into /tmp
boot.tmp.useTmpfs = true;
2023-03-31 18:27:25 +02:00
}