nix: Don't use auto-optimise-store

This commit is contained in:
Charlotte Van Petegem 2024-11-08 08:49:32 +01:00
parent a6a0ad760d
commit 40db1da31c
3 changed files with 3 additions and 1 deletions

View file

@ -4,6 +4,7 @@
nix = {
configureBuildUsers = true;
gc.interval = if config.chvp.base.nix.slowGc then { Hour = 0; Minute = 0; } else { Minute = 0; };
optimise.interval = { Minute = 30; };
settings.sandbox = true;
};
nixpkgs.flake = {

View file

@ -1,5 +1,6 @@
{ config, lib, pkgs, ... }:
{
nix.gc.dates = if config.chvp.base.nix.slowGc then "daily" else "hourly";
nix.optimise.dates = [ "hourly" ];
programs.command-not-found.enable = false;
}

View file

@ -60,8 +60,8 @@ in
automatic = true;
options = "--delete-older-than 7d";
};
optimise.automatic = true;
settings = {
auto-optimise-store = true;
substituters = [
"https://cache.nixos.org"
"https://accentor.cachix.org"