[systems] add swapfile

This commit is contained in:
Simon Cornet 2024-03-24 18:27:46 +01:00
parent c7ff941c40
commit c74c397acd
2 changed files with 12 additions and 0 deletions

View File

@ -22,6 +22,12 @@
fsType = "ext4"; fsType = "ext4";
}; };
# swap
swapDevices = [ {
device = "/swapfile";
size = 4096;
} ];
# networking # networking
networking.useDHCP = lib.mkDefault true; networking.useDHCP = lib.mkDefault true;

View File

@ -22,6 +22,12 @@
fsType = "ext4"; fsType = "ext4";
}; };
# swap
swapDevices = [ {
device = "/swapfile";
size = 4096;
} ];
# networking # networking
networking.useDHCP = lib.mkDefault true; networking.useDHCP = lib.mkDefault true;