Dump amount of used memory by guest

This commit is contained in:
dump_stack() 2018-07-12 19:29:35 +00:00
parent 17891a0024
commit 1184fa3d7e

View File

@ -1,3 +1,4 @@
{pkgs, ...}:
{
imports = [
<nix/monitor.nix>
@ -39,6 +40,14 @@ startup = do
spawn "spice-vdagent"
'';
environment.systemPackages = [ pkgs.bc ];
services.cron = {
enable = true;
systemCronJobs = [
"* * * * * root free -m | grep Mem | awk '{print $2 \"-\" $4}' | bc > /home/user/.memory_used"
];
};
systemd.services.home-user-build-xmonad = {
description = "Create and xmonad configuration";
serviceConfig = {