2023-03-31 18:27:25 +02:00
|
|
|
{ ... }:
|
|
|
|
|
|
|
|
{
|
2023-04-18 18:35:58 +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;
|
|
|
|
|
2023-04-18 18:35:58 +02:00
|
|
|
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
|
|
|
};
|
2023-11-21 23:56:55 +01:00
|
|
|
|
|
|
|
# Mount a tmpfs into /tmp
|
|
|
|
boot.tmp.useTmpfs = true;
|
2023-03-31 18:27:25 +02:00
|
|
|
}
|