add examples and test VM
This commit is contained in:
16
examples/system.nix
Normal file
16
examples/system.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
services.panoptikon.enable = true;
|
||||
|
||||
services.panoptikon.watchers = {
|
||||
boot-space = {
|
||||
script = pkgs.writers.writeDash "load-average" ''
|
||||
${pkgs.coreutils}/bin/df -h /boot
|
||||
'';
|
||||
frequency = "*:0/2";
|
||||
reporters = [
|
||||
(pkgs.panoptikonReporters.wall { })
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user