From 166cd91f23f63ce20ea025605e2386eba8f24348 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 5 Apr 2025 16:39:43 -0700 Subject: a few more configurations for darwin --- nix/machines/darwin-shared.nix | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/nix/machines/darwin-shared.nix b/nix/machines/darwin-shared.nix index f7e469d..5a2f906 100644 --- a/nix/machines/darwin-shared.nix +++ b/nix/machines/darwin-shared.nix @@ -1,6 +1,18 @@ { pkgs, ... }: { nix = { + extraOptions = '' + tarball-ttl = 900 + ''; + gc = { + automatic = true; + interval = { + Weekday = 0; + Hour = 0; + Minute = 0; + }; + options = "--delete-older-than 30d"; + }; package = pkgs.nixVersions.stable; settings = { trusted-users = [ @@ -15,6 +27,9 @@ }; system.defaults = { + NSGlobalDomain = { + AppleInterfaceStyle = "Dark"; + }; dock = { autohide = true; dashboard-in-overlay = false; @@ -48,7 +63,6 @@ fonts.packages = with pkgs; [ source-code-pro - monaspace ]; system.keyboard = { @@ -76,6 +90,15 @@ "/opt/homebrew/sbin" ]; + ## this sets the PATH for GUI apps + ## needs a restart + launchd.user.agents = { + user-paths = { + command = "/bin/launchctl config user path '/opt/homebrew/bin:/Users/fcuny/.nix-profile/bin:/etc/profiles/per-user/fcuny/bin:/run/current-system/sw/bin:/nix/var/nix/profiles/default/bin:/usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin'"; + serviceConfig.RunAtLoad = true; + }; + }; + environment.variables = { HOMEBREW_NO_ANALYTICS = "1"; HOMEBREW_NO_INSECURE_REDIRECT = "1"; -- cgit v1.2.3