enable earlyoom

This commit is contained in:
alex 2024-01-21 01:16:46 -05:00
parent 9d8cff5698
commit f268bd7b83
1 changed files with 3 additions and 1 deletions

View File

@ -39,6 +39,8 @@
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
services.earlyoom.enable = true;
services.k3s.enable = true;
services.k3s.role = "server";
services.k3s.extraFlags = toString [
@ -67,7 +69,7 @@
data_type = "integer";
};
inputs.exec = {
commands = [ "/opt/vc/bin/vcgencmd measure_temp" ];
commands = [ "${pkgs.libraspberrypi}/bin/vcgencmd measure_temp" ];
name_override = "gpu_temperature";
data_format = "grok";
grok_patterns = [ "%{NUMBER:value:float}" ];