Made timers their own module

This commit is contained in:
KoenDR06 2025-03-04 16:16:36 +01:00
parent b2687e271a
commit 270a739287
6 changed files with 89 additions and 37 deletions

View file

@ -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";
}

View file

@ -50,5 +50,9 @@
terminal = {
zsh.enable = true;
};
timers = {
wol.enable = true;
};
};
}