a ship of wol
This commit is contained in:
parent
74b7ff99d5
commit
f4227ee3bd
3 changed files with 54 additions and 4 deletions
|
|
@ -28,5 +28,29 @@
|
|||
networking.firewall.allowedUDPPorts = [
|
||||
53
|
||||
];
|
||||
systemd = {
|
||||
timers = {
|
||||
"autowin" = {
|
||||
wantedBy = [ "timers.target" ];
|
||||
timerConfig = {
|
||||
OnCalendar = "Wed *-*-21..28 02:00:00";
|
||||
Unit = "autowin.service";
|
||||
};
|
||||
};
|
||||
}; # end timers
|
||||
|
||||
services = {
|
||||
"autowin" = {
|
||||
script = ''
|
||||
${pkgs.python3Packages.python}/bin/python /home/alisceon/.nixos_config/util/wol_man.py autowin
|
||||
'';
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
TimeoutStartSec = "3600";
|
||||
User = "alisceon";
|
||||
};
|
||||
}; # end "hello-world"
|
||||
}; # end services
|
||||
}; # end systemd
|
||||
} # end file
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue