aboutsummaryrefslogtreecommitdiff
path: root/nix/machines/darwin-shared.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--nix/machines/darwin-shared.nix25
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";