diff --git a/machines/terra/configuration.nix b/machines/terra/configuration.nix index a4a6d22..e471282 100644 --- a/machines/terra/configuration.nix +++ b/machines/terra/configuration.nix @@ -16,5 +16,24 @@ networking.hostName = "terra"; + systemd.timers."enable-wol" = { + wantedBy = ["timers.target"]; + timerConfig = { + OnBootSec = "5m"; + OnUnitActiveSec = "1m"; + Unit = "enable-wol.service"; + }; + }; + + systemd.services."enable-wol" = { + script = '' + /home/horseman/nix-config/misc/startup.sh + ''; + serviceConfig = { + Type = "oneshot"; + User = "root"; + }; + }; + system.stateVersion = "24.11"; }