37 lines
697 B
Nix
37 lines
697 B
Nix
{ _, ... }:
|
|
{
|
|
# RECOMMENDED BTRFS SUBVOLUME LAYOUT
|
|
# /home
|
|
# /home/.snapshots (needed if snapper on home dir to be enabled)
|
|
# /srv
|
|
# /var/lib/portables
|
|
# /var/lib/machines
|
|
# /tmp
|
|
# /var/tmp
|
|
#
|
|
# REQUIRED PARTLABELS (can be set in parted or other tools NOT!!! FILESYSTEM LABEL!)
|
|
# / - NIXOS
|
|
# /boot - ESP
|
|
# swap - SWAP
|
|
|
|
fileSystems = {
|
|
"/" = {
|
|
device = "/dev/disk/by-partlabel/NIXOS";
|
|
fsType = "btrfs";
|
|
};
|
|
|
|
"/boot" = {
|
|
device = "/dev/disk/by-partlabel/ESP";
|
|
fsType = "vfat";
|
|
options = [
|
|
"fmask=0077"
|
|
"dmask=0077"
|
|
];
|
|
};
|
|
};
|
|
|
|
swapDevices = [
|
|
{ device = "/dev/disk/by-partlabel/SWAP"; }
|
|
];
|
|
}
|