Adjust default swap size
This commit is contained in:
parent
6b673ac3b1
commit
593f027cc9
4 changed files with 15 additions and 8 deletions
2
base.nix
2
base.nix
|
@ -121,7 +121,7 @@
|
||||||
swapDevices = [
|
swapDevices = [
|
||||||
{
|
{
|
||||||
device = "/var/lib/swapfile";
|
device = "/var/lib/swapfile";
|
||||||
size = 16 * 1024;
|
size = 8 * 1024;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -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" ];
|
||||||
|
|
|
@ -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" ];
|
||||||
|
|
|
@ -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 = [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue