Made timers their own module
This commit is contained in:
parent
b2687e271a
commit
270a739287
6 changed files with 89 additions and 37 deletions
|
|
@ -16,24 +16,5 @@
|
|||
|
||||
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";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -50,5 +50,9 @@
|
|||
terminal = {
|
||||
zsh.enable = true;
|
||||
};
|
||||
|
||||
timers = {
|
||||
wol.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue