Make OOM crashes on RasPi less likely

This commit is contained in:
Vili Sinervä 2024-07-16 22:25:30 +03:00
parent 27565e9c59
commit 6f28567604
No known key found for this signature in database
GPG key ID: DF8FEAF54EFAC996

View file

@ -16,7 +16,6 @@ in
imports = [ ../base.nix ];
environment.systemPackages = with pkgs; [
git
wireguard-tools
qrencode
];
@ -101,6 +100,18 @@ in
};
#################### EVERYTHING BELOW THIS SHOULD NOT NEED TO CHANGE ####################
nix.settings = {
cores = 3;
max-jobs = 2;
};
swapDevices = [
{
device = "/var/lib/swapfile";
size = 8 * 1024;
}
];
boot = {
kernelPackages = pkgs.linuxKernel.packages.linux_rpi4;
initrd.availableKernelModules = [