Add wol timer to terra

This commit is contained in:
KoenDR06 2025-02-28 00:27:38 +01:00
parent 377b7c895f
commit 6801c83f76

View file

@ -16,5 +16,24 @@
networking.hostName = "terra"; 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"; system.stateVersion = "24.11";
} }