Adjust default swap size

This commit is contained in:
Vili Sinervä 2024-08-28 11:52:00 +03:00
parent 6b673ac3b1
commit 593f027cc9
No known key found for this signature in database
GPG key ID: DF8FEAF54EFAC996
4 changed files with 15 additions and 8 deletions

View file

@ -121,7 +121,7 @@
swapDevices = [ swapDevices = [
{ {
device = "/var/lib/swapfile"; device = "/var/lib/swapfile";
size = 16 * 1024; size = 8 * 1024;
} }
]; ];

View file

@ -74,6 +74,13 @@
${pkgs.xorg.xrandr}/bin/xrandr --output DisplayPort-0 --auto --pos 0x0 --primary --output eDP --auto --pos 3840x360 ${pkgs.xorg.xrandr}/bin/xrandr --output DisplayPort-0 --auto --pos 0x0 --primary --output eDP --auto --pos 3840x360
''; '';
swapDevices = pkgs.lib.mkForce [
{
device = "/var/lib/swapfile";
size = 16 * 1024;
}
];
boot = { boot = {
resumeDevice = "/dev/mapper/luks-f6e1979b-0dee-4ee9-8170-10490019854b"; resumeDevice = "/dev/mapper/luks-f6e1979b-0dee-4ee9-8170-10490019854b";
kernelParams = [ "resume_offset=44537856" ]; kernelParams = [ "resume_offset=44537856" ];

View file

@ -11,6 +11,13 @@
../hardware-specific/usb-automount.nix ../hardware-specific/usb-automount.nix
]; ];
swapDevices = pkgs.lib.mkForce [
{
device = "/var/lib/swapfile";
size = 16 * 1024;
}
];
boot = { boot = {
#resumeDevice = "/dev/mapper/luks-f6e1979b-0dee-4ee9-8170-10490019854b"; #resumeDevice = "/dev/mapper/luks-f6e1979b-0dee-4ee9-8170-10490019854b";
#kernelParams = [ "resume_offset=44537856" ]; #kernelParams = [ "resume_offset=44537856" ];

View file

@ -100,13 +100,6 @@ in
max-jobs = 2; max-jobs = 2;
}; };
swapDevices = pkgs.lib.mkForce [
{
device = "/var/lib/swapfile";
size = 8 * 1024;
}
];
boot = { boot = {
kernelPackages = pkgs.linuxKernel.packages.linux_rpi4; kernelPackages = pkgs.linuxKernel.packages.linux_rpi4;
initrd.availableKernelModules = [ initrd.availableKernelModules = [