Skip to content

Commit

Permalink
fix: move nix.optimise to non-hm
Browse files Browse the repository at this point in the history
  • Loading branch information
konradmalik committed Nov 11, 2024
1 parent c121db8 commit da26e0b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 19 deletions.
30 changes: 27 additions & 3 deletions hosts/common/modules/nix/not-hm.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,31 @@
{ inputs, ... }:
{
# should be >= max-jobs
nix.nrBuildUsers = 16;
inputs,
pkgs,
lib,
...
}:
{
nix = {
# should be >= max-jobs
nrBuildUsers = 16;

optimise =
{
automatic = true;
}
// lib.optionalAttrs (pkgs.stdenvNoCC.isLinux) {
dates = [ "Fri *-*-* 10:00:00" ];
}
// lib.optionalAttrs (pkgs.stdenvNoCC.isDarwin) {
interval = [
{
Hour = 10;
Minute = 0;
Weekday = 5;
}
];
};
};
# Make `nix repl '<nixpkgs>'` use the same nixpkgs as the one used by this flake.
environment.etc."nix/inputs/nixpkgs".source = "${inputs.nixpkgs}";
}
16 changes: 0 additions & 16 deletions hosts/common/modules/nix/shared.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,6 @@ in
# Setting only non standards here. Eg. "nixpkgs" is set by default.
nixpkgs-stable.flake = inputs.nixpkgs-stable;
};
optimise =
{
automatic = true;
}
// lib.optionalAttrs (pkgs.stdenvNoCC.isLinux) {
dates = [ "Fri *-*-* 10:00:00" ];
}
// lib.optionalAttrs (pkgs.stdenvNoCC.isDarwin) {
interval = [
{
Hour = 10;
Minute = 0;
Weekday = 5;
}
];
};
settings = {
experimental-features = [
"nix-command"
Expand Down

0 comments on commit da26e0b

Please sign in to comment.