feat: improve cache-builder service trigger
This commit is contained in:
@@ -43,15 +43,10 @@
|
|||||||
path = [ config.nix.package ];
|
path = [ config.nix.package ];
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.timers.cache-builder = {
|
# restart cache-builder after every nixos switch (non-blocking)
|
||||||
description = "Periodically build all host closures";
|
system.activationScripts.cache-builder = lib.stringAfter [ "specialfs" ] ''
|
||||||
wantedBy = [ "timers.target" ];
|
${config.systemd.package}/bin/systemctl restart --no-block cache-builder.service || true
|
||||||
timerConfig = {
|
'';
|
||||||
OnUnitActiveSec = "15min";
|
|
||||||
OnBootSec = "5min";
|
|
||||||
Persistent = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user