some changes
This commit is contained in:
parent
4a183af66c
commit
b92b9b963a
4 changed files with 20 additions and 17 deletions
|
|
@ -1,9 +1,12 @@
|
|||
{ pkgs, ... }:
|
||||
let
|
||||
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);
|
||||
MAC=$(cat /var/lib/kea/dhcp4.leases | grep $1 | awk -F, '{print $2}' | tail -n 1);
|
||||
${pkgs.wol}/bin/wol -i $IP $MAC
|
||||
case $1 in
|
||||
"gaming")
|
||||
${pkgs.wol}/bin/wol -i 10.42.96.255 78:8c:b5:fe:41:62
|
||||
};
|
||||
"") echo "Usage: $0 <hostname>"; exit 1;;
|
||||
esac
|
||||
'';
|
||||
in
|
||||
{
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ in {
|
|||
firefox
|
||||
vivaldi
|
||||
|
||||
unstable.cura
|
||||
# unstable.cura
|
||||
freecad
|
||||
openscad
|
||||
|
||||
|
|
|
|||
|
|
@ -373,22 +373,22 @@ in
|
|||
};
|
||||
"tools.epicenter.works" = {
|
||||
user = "root";
|
||||
identityFile = "epicenter.id_rsa";
|
||||
identityFile = "~/.ssh/epicenter.id_rsa";
|
||||
};
|
||||
"*.epicenter.works !tools.epicenter.works" = {
|
||||
user = "dominik";
|
||||
identityFile = "epicenter.id_rsa";
|
||||
identityFile = "~/.ssh/epicenter.id_rsa";
|
||||
};
|
||||
"*.dearmep.eu" = {
|
||||
user = "root";
|
||||
identityFile = "epicenter.id_rsa";
|
||||
identityFile = "~/.ssh/epicenter.id_rsa";
|
||||
};
|
||||
"*.akvorrat.at" = {
|
||||
user = "dominik";
|
||||
setEnv = {
|
||||
TERM = "xterm-256color";
|
||||
};
|
||||
identityFile = "epicenter.id_rsa";
|
||||
identityFile = "~/.ssh/epicenter.id_rsa";
|
||||
};
|
||||
"*.cloonar.com" = {
|
||||
user = "root";
|
||||
|
|
|
|||
|
|
@ -9,28 +9,28 @@ in
|
|||
postfix: yes
|
||||
'';
|
||||
|
||||
sops.secrets.netdata-claim-token = { };
|
||||
|
||||
services.netdata = {
|
||||
enable = true;
|
||||
|
||||
package = unstable.netdata;
|
||||
# claimTokenFile = config.sops.secrets.netdata-claim-token.path;
|
||||
|
||||
python.enable = true;
|
||||
|
||||
package = pkgs.netdata.override {
|
||||
withCloud = true;
|
||||
};
|
||||
|
||||
config = {
|
||||
global = {
|
||||
# uncomment to reduce memory to 32 MB
|
||||
"memory mode" = "none";
|
||||
"page cache size" = 32;
|
||||
|
||||
# update interval
|
||||
"update every" = 15;
|
||||
};
|
||||
ml = {
|
||||
# enable machine learning
|
||||
"enabled" = "yes";
|
||||
};
|
||||
# web = {
|
||||
# mode = "none";
|
||||
# "accept a streaming request every seconds" = 0;
|
||||
# };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue