Added Cachix for Nix-Darwin

This commit is contained in:
DerGrumpf
2026-04-08 10:11:31 +02:00
parent 191893c28c
commit 0766f72f0c

View File

@@ -1,37 +1,27 @@
{ { pkgs, inputs, self, primaryUser, ... }: {
pkgs, imports = [ ./homebrew.nix ./settings.nix ./yabai.nix ];
inputs,
self,
primaryUser,
...
}:
{
imports = [
./homebrew.nix
./settings.nix
./yabai.nix
];
# nix config # nix config
nix = { nix = {
settings = { settings = {
experimental-features = [ experimental-features = [ "nix-command" "flakes" ];
"nix-command"
"flakes"
];
max-jobs = "auto"; # Use all CPU cores max-jobs = "auto"; # Use all CPU cores
cores = 0; # Use all cores per build cores = 0; # Use all cores per build
# disabled due to https://github.com/NixOS/nix/issues/7273 # disabled due to https://github.com/NixOS/nix/issues/7273
# auto-optimise-store = true; # auto-optimise-store = true;
substituters =
[ "https://cache.nixos.org" "https://nix-community.cachix.org" ];
trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
}; };
enable = true; # using determinate installer enable = true; # using determinate installer
# Garbage collection # Garbage collection
gc = { gc = {
automatic = true; automatic = true;
interval = { interval = { Weekday = 7; }; # Run weekly
Weekday = 7;
}; # Run weekly
options = "--delete-older-than 30d"; options = "--delete-older-than 30d";
}; };
}; };
@@ -44,9 +34,7 @@
info.enable = false; # Skip info pages info.enable = false; # Skip info pages
}; };
nixpkgs.config = { nixpkgs.config = { allowUnfree = true; };
allowUnfree = true;
};
# homebrew installation manager # homebrew installation manager
nix-homebrew = { nix-homebrew = {
user = primaryUser; user = primaryUser;