mirror of
https://code.dumpstack.io/tools/appvm.git
synced 2024-12-25 12:29:48 +00:00
Dump amount of used memory by guest
This commit is contained in:
parent
17891a0024
commit
1184fa3d7e
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user