diff options
| author | Franck Cuny <franck@fcuny.net> | 2025-04-05 16:39:43 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2025-04-05 16:39:43 -0700 |
| commit | 166cd91f23f63ce20ea025605e2386eba8f24348 (patch) | |
| tree | 2c50570fff3d922f15a4524af4d723a06a2bbb9f | |
| parent | install iterm2 and remove wezterm (diff) | |
| download | infra-166cd91f23f63ce20ea025605e2386eba8f24348.tar.gz | |
a few more configurations for darwin
Diffstat (limited to '')
| -rw-r--r-- | nix/machines/darwin-shared.nix | 25 |
1 files changed, 24 insertions, 1 deletions
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"; |
