From e5a7512a98a0d589b25f8620623ec87d5e205f99 Mon Sep 17 00:00:00 2001 From: Daniel Thoren Date: Mon, 8 Sep 2025 13:40:09 +0200 Subject: [PATCH] feat(macos): improve nix-darwin config for stability and ergonomics :zap: --- nixos/hosts/macos.nix | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/nixos/hosts/macos.nix b/nixos/hosts/macos.nix index 2268f0d..5431a8f 100644 --- a/nixos/hosts/macos.nix +++ b/nixos/hosts/macos.nix @@ -5,7 +5,17 @@ nixpkgs.hostPlatform = "aarch64-darwin"; services.nix-daemon.enable = true; - nix.settings.experimental-features = [ "nix-command" "flakes" ]; + nix = { + settings = { + experimental-features = [ "nix-command" "flakes" ]; + auto-optimise-store = true; + }; + gc = { + automatic = true; + interval = { Weekday = 0; Hour = 3; Minute = 0; }; + }; + }; + nixpkgs.config.allowUnfree = true; # Shells & dev ergonomics @@ -22,9 +32,6 @@ # Set if you want a specific hostname in macOS UI as well: hostName = "Daniel-Macbook-Air"; knownNetworkServices = [ "Wi-Fi" "Thunderbolt Bridge" ]; - dns = [ - "84.200.69.80" "8.26.56.26" "1.1.1.1" "8.8.8.8" "64.6.65.6" "208.67.222.222" "209.244.0.3" - ]; }; # macOS niceties @@ -54,6 +61,9 @@ ripgrep wget busybox + git + gnupg + coreutils openssl neofetch btop