baseImage: tinkering with overcommit

This commit is contained in:
Else Someone 2026-03-22 16:19:11 +02:00
parent 3540b5aba2
commit 42180096af
2 changed files with 7 additions and 2 deletions

View file

@ -73,8 +73,8 @@ class Processes:
text=text,
env=env,
cwd="/home/user",
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
stdin=None,
stdout=None,
)
res["status"] = "exec succeeded"
except Exception as e:

View file

@ -45,6 +45,11 @@ in
hardware.graphics.enable = true;
# boot.kernelPackages = pkgs.linuxPackagesFor uvmsPkgs.linux-uvm;
# boot.isContainer = true;
boot.kernel.sysctl = {
"vm.overcommit_memory" = 1; # "always"
# "vm.overcommit_memory" = 2; # "never"
"vm.panic_on_oom" = 1;
};
boot.initrd.kernelModules = [
"drm"
"virtio_blk"