1
0
Fork 0

Memory autoballoon (host side)

master
dump_stack() 2020-01-05 09:02:03 +00:00
parent 573be66059
commit 806448df17
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
1 changed files with 15 additions and 1 deletions

View File

@ -44,7 +44,21 @@ in {
'';
};
# TODO run ${appvm}/bin/appvm autoballoon each second
systemd.user.services."autoballoon" = {
serviceConfig.StartLimitBurst = 64;
script = "${appvm}/bin/appvm autoballoon";
};
systemd.user.timers."autoballoon" = {
description = "Autoupdate resolution crutch";
timerConfig = {
OnBootSec = "1s";
OnUnitInactiveSec = "1s";
Unit = "autoballoon.service";
AccuracySec = "1us";
};
wantedBy = ["timers.target"];
};
environment.systemPackages = with pkgs; [
appvm virtmanager chromium