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, ... }:
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
{

View File

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

View File

@@ -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";