add nix settings for darwin

This commit is contained in:
Noah Masur
2025-03-10 02:43:31 +00:00
parent 2b1106ec94
commit 90fd9f54a7
2 changed files with 62 additions and 3 deletions

View File

@ -45,6 +45,7 @@ in
trusted-users = [
"root"
"@wheel"
username
];
# Add community Cachix to binary cache
@ -57,9 +58,7 @@ in
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
# Scans and hard links identical files in the store
# Not working with macOS: https://github.com/NixOS/nix/issues/7273
auto-optimise-store = lib.mkIf (!pkgs.stdenv.isDarwin) true;
auto-optimise-store = true;
};
};