From 6db66fa45e51fc6cc94337c905f42af6972b5575 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Fri, 9 May 2025 12:54:21 -0500 Subject: [PATCH] Add more things I will want on the Mac --- darwin/hosts/ivr/default.nix | 15 ++++++++++++ modules/darwin/default.nix | 45 ++++++++++++++++++++++++++++++++++-- 2 files changed, 58 insertions(+), 2 deletions(-) diff --git a/darwin/hosts/ivr/default.nix b/darwin/hosts/ivr/default.nix index 14a0e75..4e220fc 100644 --- a/darwin/hosts/ivr/default.nix +++ b/darwin/hosts/ivr/default.nix @@ -1,10 +1,25 @@ { ... }: { + #environment.loginShell = lib.getExe pkgs.xonsh; homebrews = { enable = true; + brews = [ + "direnv" + { + name = "libvirt"; + restart_service = true; + } + "qemu" + ]; casks = [ + "alt-tab" + "bruno" + "chromium" "firefox" "onlyoffice" + "pgadmin4" + "vagrant" + "visual-studio-code" "zed" ]; }; diff --git a/modules/darwin/default.nix b/modules/darwin/default.nix index 15f2dfb..8d1a1b9 100644 --- a/modules/darwin/default.nix +++ b/modules/darwin/default.nix @@ -1,4 +1,4 @@ -{ ... }: +{ config, pkgs, ... }: { imports = [ ../baseline.nix ]; @@ -12,11 +12,23 @@ }; }; + fonts.packages = with pkgs; [ + dejavu_fonts + hack-font + nerdfonts + ]; + nix = { gc.interval.Hour = 24; settings.auto-optimise-store = false; # Darwin bugs? }; + power.sleep = { + allowSleepByPowerButton = true; + computer = "never"; + display = 30; + }; + programs = { zsh.enable = true; bash.enable = true; @@ -24,7 +36,36 @@ services.nix-daemon.enable = true; - system.stateVersion = 4; + system = { + defaults = { + finder = { + AppleShowAllExtensions = true; + AppleShowAllFiles = true; + ShowExternalHardDrivesOnDesktop = true; + ShowMountedServersOnDesktop = true; + ShowPathbar = true; + ShowRemovableMediaOnDesktop = true; + ShowStatusBar = true; + }; + LaunchServices.LSQuarantine = false; + menuExtraClock = { + Show24Hour = true; + ShowDate = true; + }; + screencapture = { + include-date = true; + location = "${config.home-manager.extraSpecialArgs.home}/Photos/Screeneries"; + }; + trackpad = { + Dragging = false; + TrackpadRightClick = true; + }; + }; + startup.chime = false; + stateVersion = 6; + }; + + time.timeZone = "America/Chicago"; users.users."gregory.hellings".home = "/Users/gregory.hellings"; }