feat: add swapfiles to devices without swap
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-08-18 23:14:30 -04:00
parent e76841b841
commit 70d794c753
4 changed files with 31 additions and 2 deletions

View file

@ -1,6 +1,5 @@
{ {
config, config,
lib,
modulesPath, modulesPath,
pkgs, pkgs,
... ...
@ -61,9 +60,17 @@
}; };
}; };
swapDevices = [
{
device = "/var/lib/swapfile";
size = 16 * 1024;
}
];
zramSwap.enable = true; zramSwap.enable = true;
hardware = { hardware = {
cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; cpu.amd.updateMicrocode = config.hardware.enableRedistributableFirmware;
uinput.enable = true; uinput.enable = true;
}; };

View file

@ -51,6 +51,13 @@
}; };
}; };
swapDevices = [
{
device = "/var/lib/swapfile";
size = 16 * 1024;
}
];
zramSwap.enable = true; zramSwap.enable = true;
hardware.cpu.intel.updateMicrocode = config.hardware.enableRedistributableFirmware; hardware.cpu.intel.updateMicrocode = config.hardware.enableRedistributableFirmware;

View file

@ -52,6 +52,13 @@
}; };
}; };
swapDevices = [
{
device = "/var/lib/swapfile";
size = 16 * 1024;
}
];
zramSwap.enable = true; zramSwap.enable = true;
hardware.cpu.amd.updateMicrocode = config.hardware.enableRedistributableFirmware; hardware.cpu.amd.updateMicrocode = config.hardware.enableRedistributableFirmware;

View file

@ -55,7 +55,15 @@
}; };
}; };
swapDevices = [
{
device = "/var/lib/swapfile";
size = 16 * 1024;
}
];
zramSwap.enable = true; zramSwap.enable = true;
hardware = { hardware = {
cpu.amd.updateMicrocode = config.hardware.enableRedistributableFirmware; cpu.amd.updateMicrocode = config.hardware.enableRedistributableFirmware;