add swap device
This commit is contained in:
parent
e308d97249
commit
eb8fbe1bfc
1 changed files with 7 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
config = {
|
config = {
|
||||||
boot.initrd.luks.devices."cryptroot".device = "/dev/disk-by-uuid/";
|
boot.initrd.luks.devices."cryptroot".device = "/dev/disk-by-uuid/";
|
||||||
fileSystems = {
|
fileSystems = {
|
||||||
"/boot" = {
|
"/boot" = {
|
||||||
device = "";
|
device = "";
|
||||||
|
@ -28,6 +28,12 @@
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
options = ["subvol=home" "compress=zstd" "noatime"];
|
options = ["subvol=home" "compress=zstd" "noatime"];
|
||||||
};
|
};
|
||||||
|
"/swap" = {
|
||||||
|
device = "";
|
||||||
|
fsType = "btrfs";
|
||||||
|
|
||||||
|
options = ["subvol=swap" "compress=lzo" "noatime"];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
swapDevices = [
|
swapDevices = [
|
||||||
{device = "";}
|
{device = "";}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue