42 lines
929 B
Nix
42 lines
929 B
Nix
{ ... }: {
|
|
|
|
fileSystems."/" =
|
|
{ device = "/dev/mapper/cryptroot";
|
|
fsType = "btrfs";
|
|
options = [ "subvol=root" "compress=zstd" "noatime" ];
|
|
};
|
|
|
|
fileSystems."/nix" =
|
|
{ device = "/dev/mapper/cryptroot";
|
|
fsType = "btrfs";
|
|
options = [ "subvol=nix" "compress=zstd" "noatime" ];
|
|
};
|
|
|
|
fileSystems."/var/log" =
|
|
{ device = "/dev/mapper/cryptroot";
|
|
fsType = "btrfs";
|
|
options = [ "subvol=log" "compress=zstd" "noatime" ];
|
|
neededForBoot = true;
|
|
};
|
|
|
|
fileSystems."/nix/persist" =
|
|
{ device = "/dev/mapper/cryptroot";
|
|
fsType = "btrfs";
|
|
options = [ "subvol=persist" "compress=zstd" "noatime" ];
|
|
neededForBoot = true;
|
|
};
|
|
|
|
fileSystems."/boot" =
|
|
{ device = "/dev/disk/by-partlabel/boot";
|
|
fsType = "vfat";
|
|
options = [ "fmask=0077" "dmask=0077" ];
|
|
};
|
|
|
|
swapDevices = [{
|
|
device = "/swapfile";
|
|
size = 16 * 1024;
|
|
}];
|
|
|
|
}
|
|
|