Add wol timer to terra
This commit is contained in:
parent
377b7c895f
commit
6801c83f76
1 changed files with 19 additions and 0 deletions
|
|
@ -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";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue