Initial commit of flake-based NixOS config for the whole haus
This commit is contained in:
26
hosts/puter/cronjobs.nix
Normal file
26
hosts/puter/cronjobs.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
systemd.timers."kondo" = {
|
||||
wantedBy = ["timers.target"];
|
||||
timerConfig = {
|
||||
#OnBootSec = "5m";
|
||||
#OnUnitActiveSec = "5m";
|
||||
Unit = "kondo.service";
|
||||
OnCalendar = "weekly";
|
||||
Persistent = true;
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services."kondo" = {
|
||||
script = ''
|
||||
kondo --all --ignored-dirs dev/current
|
||||
'';
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
User = "root";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user