modules/darwin: add nix optimise
This commit is contained in:
parent
7fa3153937
commit
47a8120800
3 changed files with 12 additions and 3 deletions
|
@ -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" ];
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@ in
|
|||
{
|
||||
imports = [
|
||||
./apfs-cleanup.nix
|
||||
./optimise.nix
|
||||
./reboot.nix
|
||||
./telegraf.nix
|
||||
./upgrade-diff.nix
|
||||
|
|
11
modules/darwin/common/optimise.nix
Normal file
11
modules/darwin/common/optimise.nix
Normal 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;
|
||||
}
|
||||
];
|
||||
}
|
Loading…
Add table
Reference in a new issue