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-03-31 18:27:25 +02:00
|
|
|
# Mount the home via NFS
|
|
|
|
fileSystems."/home" = {
|
|
|
|
device = "10.0.40.30:/home";
|
|
|
|
fsType = "nfs";
|
2023-04-03 12:51:44 +02:00
|
|
|
options = [ "nfsvers=3" "rsize=1024" "wsize=1024" "cto" "nofail" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
# 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
|
|
|
}
|