feat(btrfs): place swap in its own subvol
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-08-25 02:00:32 -04:00
parent 037f59f415
commit 381a0359db
6 changed files with 48 additions and 6 deletions

View file

@ -49,6 +49,13 @@
options = ["subvol=@"];
};
# sudo btrfs subvolume create /@swap
"/swap" = {
device = "/dev/disk/by-label/NIXROOT";
fsType = "btrfs";
options = ["subvol=@swap"];
};
"/boot" = {
device = "/dev/disk/by-uuid/1407-A10C";
fsType = "vfat";
@ -62,7 +69,7 @@
swapDevices = [
{
device = "/var/lib/swapfile";
device = "/swap/swapfile";
size = 16 * 1024;
}
];

View file

@ -33,6 +33,13 @@
fsType = "btrfs";
};
# sudo btrfs subvolume create /@swap
"/swap" = {
device = "/dev/disk/by-label/NIXROOT";
fsType = "btrfs";
options = ["subvol=@swap"];
};
"/boot" = {
device = "/dev/disk/by-label/NIXBOOT";
fsType = "vfat";
@ -41,7 +48,7 @@
swapDevices = [
{
device = "/var/lib/swapfile";
device = "/swap/swapfile";
size = 16 * 1024;
}
];

View file

@ -34,6 +34,13 @@
fsType = "btrfs";
};
# sudo btrfs subvolume create /@swap
"/swap" = {
device = "/dev/disk/by-label/NIXROOT";
fsType = "btrfs";
options = ["subvol=@swap"];
};
"/boot" = {
device = "/dev/disk/by-label/NIXBOOT";
fsType = "vfat";
@ -43,7 +50,7 @@
swapDevices = [
{
device = "/var/lib/swapfile";
device = "/swap/swapfile";
size = 16 * 1024;
}
];

View file

@ -45,6 +45,13 @@
fsType = "btrfs";
};
# sudo btrfs subvolume create /@swap
"/swap" = {
device = "/dev/disk/by-label/NIXROOT";
fsType = "btrfs";
options = ["subvol=@swap"];
};
"/boot" = {
device = "/dev/disk/by-label/NIXBOOT";
fsType = "vfat";
@ -53,7 +60,7 @@
swapDevices = [
{
device = "/var/lib/swapfile";
device = "/swap/swapfile";
size = 16 * 1024;
}
];

View file

@ -46,6 +46,13 @@
fsType = "btrfs";
};
# sudo btrfs subvolume create /@swap
"/swap" = {
device = "/dev/disk/by-label/NIXROOT";
fsType = "btrfs";
options = ["subvol=@swap"];
};
"/boot" = {
device = "/dev/disk/by-label/NIXBOOT";
fsType = "vfat";
@ -54,7 +61,7 @@
swapDevices = [
{
device = "/var/lib/swapfile";
device = "/swap/swapfile";
size = 16 * 1024;
}
];

View file

@ -49,6 +49,13 @@
fsType = "btrfs";
};
# sudo btrfs subvolume create /@swap
"/swap" = {
device = "/dev/disk/by-label/NIXROOT";
fsType = "btrfs";
options = ["subvol=@swap"];
};
"/boot" = {
device = "/dev/disk/by-label/NIXBOOT";
fsType = "vfat";
@ -57,7 +64,7 @@
swapDevices = [
{
device = "/var/lib/swapfile";
device = "/swap/swapfile";
size = 16 * 1024;
}
];