some changes

This commit is contained in:
2024-07-12 22:14:20 +02:00
parent 4a183af66c
commit b92b9b963a
4 changed files with 20 additions and 17 deletions

View File

@@ -1,9 +1,12 @@
{ pkgs, ... }: { pkgs, ... }:
let let
wolScript = pkgs.writeScriptBin "wol-script" '' wolScript = pkgs.writeScriptBin "wol-script" ''
IP=$(cat /var/lib/kea/dhcp4.leases | grep $1 | awk -F, '{print $1}' | awk -F. 'OFS="." {print $1,$2,$3,255}' | tail -n 1); case $1 in
MAC=$(cat /var/lib/kea/dhcp4.leases | grep $1 | awk -F, '{print $2}' | tail -n 1); "gaming")
${pkgs.wol}/bin/wol -i $IP $MAC ${pkgs.wol}/bin/wol -i 10.42.96.255 78:8c:b5:fe:41:62
};
"") echo "Usage: $0 <hostname>"; exit 1;;
esac
''; '';
in in
{ {

View File

@@ -69,7 +69,7 @@ in {
firefox firefox
vivaldi vivaldi
unstable.cura # unstable.cura
freecad freecad
openscad openscad

View File

@@ -373,22 +373,22 @@ in
}; };
"tools.epicenter.works" = { "tools.epicenter.works" = {
user = "root"; user = "root";
identityFile = "epicenter.id_rsa"; identityFile = "~/.ssh/epicenter.id_rsa";
}; };
"*.epicenter.works !tools.epicenter.works" = { "*.epicenter.works !tools.epicenter.works" = {
user = "dominik"; user = "dominik";
identityFile = "epicenter.id_rsa"; identityFile = "~/.ssh/epicenter.id_rsa";
}; };
"*.dearmep.eu" = { "*.dearmep.eu" = {
user = "root"; user = "root";
identityFile = "epicenter.id_rsa"; identityFile = "~/.ssh/epicenter.id_rsa";
}; };
"*.akvorrat.at" = { "*.akvorrat.at" = {
user = "dominik"; user = "dominik";
setEnv = { setEnv = {
TERM = "xterm-256color"; TERM = "xterm-256color";
}; };
identityFile = "epicenter.id_rsa"; identityFile = "~/.ssh/epicenter.id_rsa";
}; };
"*.cloonar.com" = { "*.cloonar.com" = {
user = "root"; user = "root";

View File

@@ -9,28 +9,28 @@ in
postfix: yes postfix: yes
''; '';
sops.secrets.netdata-claim-token = { };
services.netdata = { services.netdata = {
enable = true; enable = true;
package = unstable.netdata;
# claimTokenFile = config.sops.secrets.netdata-claim-token.path;
python.enable = true; python.enable = true;
package = pkgs.netdata.override {
withCloud = true;
};
config = { config = {
global = { global = {
# uncomment to reduce memory to 32 MB "memory mode" = "none";
"page cache size" = 32; "page cache size" = 32;
# update interval
"update every" = 15; "update every" = 15;
}; };
ml = { ml = {
# enable machine learning # enable machine learning
"enabled" = "yes"; "enabled" = "yes";
}; };
# web = {
# mode = "none";
# "accept a streaming request every seconds" = 0;
# };
}; };
}; };
} }