spread nix store optimiser over time

This commit is contained in:
XenGi 2026-02-22 15:41:37 +01:00
parent 6625e9c1f3
commit 568c968ca8
Signed by: xengi
SSH key fingerprint: SHA256:jxWM2RTHvxxcncXycwwWkP7HCWb4VREN05UGJTbIPZg
11 changed files with 18 additions and 13 deletions

View file

@ -1,13 +1,9 @@
{ config, lib, pkgs, ... }:
let
randomHour = import ../lib/randomHour.nix { inherit lib; };
in
{
nix = {
optimise = {
automatic = true;
dates = [ "${toString randomHour config.networking.hostName}:00" ];
};
settings = {
auto-optimise-store = true;