1
0
Fork 0

Dump amount of used memory by guest

master
dump_stack() 2018-07-12 19:29:35 +00:00
parent 17891a0024
commit 1184fa3d7e
1 changed files with 9 additions and 0 deletions

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 = {