mirror of
https://code.dumpstack.io/tools/appvm.git
synced 2024-11-16 09:13:01 +00:00
Dump amount of used memory by guest
This commit is contained in:
parent
17891a0024
commit
1184fa3d7e
@ -1,3 +1,4 @@
|
|||||||
|
{pkgs, ...}:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
<nix/monitor.nix>
|
<nix/monitor.nix>
|
||||||
@ -39,6 +40,14 @@ startup = do
|
|||||||
spawn "spice-vdagent"
|
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 = {
|
systemd.services.home-user-build-xmonad = {
|
||||||
description = "Create and xmonad configuration";
|
description = "Create and xmonad configuration";
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
Loading…
Reference in New Issue
Block a user