Skip to content

Commit

Permalink
fix: disable automatic nix optimise on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
konradmalik committed Jan 10, 2025
1 parent 8772a1a commit 3e41a0e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 18 deletions.
10 changes: 0 additions & 10 deletions hosts/common/modules/nix/darwin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,6 @@
Minute = 0;
};
};
optimise = {
automatic = true;
interval = [
{
Hour = 4;
Minute = 15;
Weekday = 7;
}
];
};
linux-builder = {
# sudo ssh linux-builder
enable = false;
Expand Down
5 changes: 0 additions & 5 deletions hosts/common/modules/nix/nixos.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ in
persistent = true;
};

optimise = {
automatic = true;
dates = [ "daily" ];
};

sshServe = {
enable = true;
keys = lib.flatten (theirAuthorizedKeys (ifTheyExist [ "konrad" ]));
Expand Down
7 changes: 4 additions & 3 deletions hosts/common/modules/nix/not-hm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@
nrBuildUsers = 16;

optimise =
{
lib.optionalAttrs (pkgs.stdenvNoCC.isLinux) {
automatic = true;
}
// lib.optionalAttrs (pkgs.stdenvNoCC.isLinux) {
dates = [ "Fri *-*-* 10:00:00" ];
}
// lib.optionalAttrs (pkgs.stdenvNoCC.isDarwin) {
# TODO problems with sysctld high cpu usage?
# just disable this
automatic = false;
interval = [
{
Hour = 10;
Expand Down

0 comments on commit 3e41a0e

Please sign in to comment.