create wakeonlan convenience function

This commit is contained in:
Noah Masur 2023-07-21 01:07:09 +00:00
parent b390fff749
commit cb15cc209b

View File

@ -1,4 +1,4 @@
{ config, lib, ... }: {
{ config, pkgs, lib, ... }: {
config = lib.mkIf config.physical {
@ -20,6 +20,12 @@
workstation = true;
};
};
environment.systemPackages = [
(pkgs.writeShellScriptBin "wake-tempest"
"${pkgs.wakeonlan}/bin/wakeonlan --ip=192.168.1.255 74:56:3C:40:37:5D")
];
};
}