add wake-on-lan command as a program

This commit is contained in:
Osman Faruk Bayram 2025-02-23 19:06:56 +03:00
parent ae8c5b8c35
commit 8b331dae79
2 changed files with 8 additions and 1 deletions

View file

@ -39,6 +39,10 @@
echo "Starting sshd on port 8022" echo "Starting sshd on port 8022"
${pkgs.openssh}/bin/sshd ${pkgs.openssh}/bin/sshd
'') '')
(pkgs.writeShellScriptBin "wake-ymir" ''
echo waking up ymir
${pkgs.wakeonlan}/bin/wakeonlan 04:7c:16:e6:d9:13
'')
]; ];
# Backup etc files instead of failing to activate generation if a file already exists in /etc # Backup etc files instead of failing to activate generation if a file already exists in /etc

View file

@ -17,7 +17,10 @@
htop htop
unzip unzip
tlrc tlrc
wakeonlan (pkgs.writeShellScriptBin "wake-ymir" ''
echo waking up ymir
${pkgs.wakeonlan}/bin/wakeonlan 04:7c:16:e6:d9:13
'')
btop btop
pciutils pciutils
nodePackages.npm nodePackages.npm