feat(nix): switch from nix.settings.auto-optimise-store to nix.optimise
This runs optimisation periodically instead of during builds.
This commit is contained in:
parent
e3680c4bf4
commit
62b6d12d3e
1 changed files with 4 additions and 1 deletions
|
@ -18,6 +18,10 @@ in
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
|
nix.optimise = {
|
||||||
|
automatic = true;
|
||||||
|
};
|
||||||
|
|
||||||
nix.gc = {
|
nix.gc = {
|
||||||
automatic = true;
|
automatic = true;
|
||||||
dates = "04:00";
|
dates = "04:00";
|
||||||
|
@ -26,7 +30,6 @@ in
|
||||||
|
|
||||||
nix.settings = {
|
nix.settings = {
|
||||||
trusted-users = [ "@wheel" ];
|
trusted-users = [ "@wheel" ];
|
||||||
auto-optimise-store = true;
|
|
||||||
substituters = nixConfig.extra-substituters;
|
substituters = nixConfig.extra-substituters;
|
||||||
trusted-public-keys = nixConfig.extra-trusted-public-keys;
|
trusted-public-keys = nixConfig.extra-trusted-public-keys;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue