modules/darwin: add nix optimise

This commit is contained in:
zowoq 2024-07-15 11:25:07 +10:00
parent 7fa3153937
commit 47a8120800
3 changed files with 12 additions and 3 deletions
hosts/darwin01
modules/darwin/common

View file

@ -7,9 +7,6 @@
inputs.self.darwinModules.community-builder
];
# https://github.com/NixOS/nix/issues/7273
nix.settings.auto-optimise-store = false;
nix.settings.sandbox = "relaxed";
nix.settings.extra-platforms = [ "x86_64-darwin" ];

View file

@ -10,6 +10,7 @@ in
{
imports = [
./apfs-cleanup.nix
./optimise.nix
./reboot.nix
./telegraf.nix
./upgrade-diff.nix

View file

@ -0,0 +1,11 @@
{
# https://github.com/NixOS/nix/issues/7273
nix.settings.auto-optimise-store = false;
nix.optimise.interval = [
{
Hour = 5;
Minute = 45;
}
];
}