add more swap to cupsnet, as nix ci ooms
All checks were successful
use nix / build (push) Successful in 13m5s

This commit is contained in:
Cyryl Płotnicki 2024-04-27 13:08:20 +01:00
parent 6bba9cf2b9
commit d824128e33

View file

@ -1,4 +1,10 @@
{ config, pkgs, inputs, lib, ... }: { {
config,
pkgs,
inputs,
lib,
...
}: {
imports = [ imports = [
"${inputs.nixpkgs-stable}/nixos/modules/profiles/qemu-guest.nix" "${inputs.nixpkgs-stable}/nixos/modules/profiles/qemu-guest.nix"
../cli.nix ../cli.nix
@ -20,8 +26,15 @@
zramSwap = { zramSwap = {
enable = true; enable = true;
algorithm = "zstd"; algorithm = "zstd";
memoryPercent = 100; memoryPercent = 50;
}; };
swapDevices = [
{
device = "/swapfile";
size = 16384;
}
];
time.timeZone = "Europe/London"; time.timeZone = "Europe/London";
} }