2026-07-18 09:21:51 -04:00
|
|
|
{ ... }:
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
# Determinate already manages the Nix daemon, so nix-darwin shouldn't.
|
|
|
|
|
nix.enable = false;
|
2026-07-18 22:54:23 -04:00
|
|
|
programs.zsh.enable = true;
|
2026-07-18 09:21:51 -04:00
|
|
|
|
2026-08-08 21:20:27 -04:00
|
|
|
# SSH server (macOS 14.4+ gates `systemsetup -setremotelogin` behind Full Disk Access; nix-darwin loads ssh.plist via launchd directly instead).
|
|
|
|
|
services.openssh.enable = true;
|
|
|
|
|
|
2026-07-18 09:21:51 -04:00
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
|
nixpkgs.hostPlatform = "aarch64-darwin"; # use x86_64-darwin for Intel CPU
|
|
|
|
|
|
|
|
|
|
system.primaryUser = "laptran";
|
|
|
|
|
users.users.laptran = {
|
|
|
|
|
home = "/Users/laptran";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
system.stateVersion = 6;
|
|
|
|
|
system.defaults = {
|
|
|
|
|
NSGlobalDomain = {
|
|
|
|
|
AppleInterfaceStyle = "Dark";
|
|
|
|
|
KeyRepeat = 2; # fast key repeat
|
|
|
|
|
InitialKeyRepeat = 15; # short delay before repeat
|
|
|
|
|
_HIHideMenuBar = true; # auto-hide the menu bar
|
|
|
|
|
AppleShowAllExtensions = true;
|
|
|
|
|
};
|
|
|
|
|
dock.autohide = true;
|
|
|
|
|
finder.FXPreferredViewStyle = "Nlsv"; # list view by default
|
|
|
|
|
finder.CreateDesktop = false; # clean desktop
|
|
|
|
|
trackpad.Clicking = true; # tap to click
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
nix-homebrew = {
|
|
|
|
|
enable = true;
|
|
|
|
|
user = "laptran";
|
|
|
|
|
autoMigrate = true; # adopt existing homebrew if already installed
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
homebrew = {
|
|
|
|
|
enable = true;
|
|
|
|
|
onActivation.cleanup = "zap"; # remove anything not listed here
|
|
|
|
|
onActivation.autoUpdate = true;
|
2026-09-18 13:58:49 -04:00
|
|
|
onActivation.upgrade = true; # upgrade outdated formulae/casks on rebuild
|
2026-07-18 09:21:51 -04:00
|
|
|
onActivation.extraFlags = [ "--force" ];
|
|
|
|
|
brews = [
|
2026-09-18 13:58:49 -04:00
|
|
|
"ffmpeg"
|
2026-10-25 13:04:30 -04:00
|
|
|
"gallery-dl" # X/Twitter media download for yt-transcribe (X video needs auth yt-dlp can't get)
|
2026-08-08 21:20:27 -04:00
|
|
|
"gh"
|
2026-07-18 09:21:51 -04:00
|
|
|
"herdr"
|
2026-09-30 19:36:01 -04:00
|
|
|
# Client-only psql for read-only DB investigation. libpq is the keg-only
|
|
|
|
|
# PostgreSQL client (no postgres server binary, no service); link = true
|
|
|
|
|
# forces `brew link --force` so psql lands on /opt/homebrew/bin and
|
|
|
|
|
# resolves on the normal PATH. No server, service, database, or
|
|
|
|
|
# connection is configured.
|
|
|
|
|
{ name = "libpq"; link = true; }
|
2026-09-18 13:58:49 -04:00
|
|
|
"node" # required: opencode2 is an npm global, not a Homebrew formula
|
2026-08-08 21:20:27 -04:00
|
|
|
"pi-coding-agent"
|
2026-09-18 13:58:49 -04:00
|
|
|
"tea" # Gitea CLI - PRs for firstmate crewmates on unraid.local:3003
|
2026-08-08 21:20:27 -04:00
|
|
|
"tmux"
|
|
|
|
|
"treehouse"
|
2026-10-25 13:04:30 -04:00
|
|
|
"whisper-cpp" # whisper-cli for yt-transcribe (reuses OpenSuperWhisper's model)
|
|
|
|
|
"yt-dlp" # yt-transcribe engine; same engine reclip runs in its container
|
2026-07-18 09:21:51 -04:00
|
|
|
];
|
|
|
|
|
casks = [
|
2026-10-04 15:05:50 -04:00
|
|
|
# Codex desktop home: the standalone Codex.app was folded into the ChatGPT
|
|
|
|
|
# app (2026-07); the deprecated `codex-app` cask must not be used.
|
|
|
|
|
"chatgpt"
|
|
|
|
|
"codex" # Codex CLI; shares ~/.codex/config.toml with the desktop app
|
2026-10-30 12:00:03 -04:00
|
|
|
"coteditor" # plain-text editor; cask id is one lowercase word
|
2026-09-18 13:58:49 -04:00
|
|
|
"docker-desktop"
|
2026-07-18 22:54:23 -04:00
|
|
|
"grok-build"
|
2026-10-24 15:56:33 -04:00
|
|
|
"opensuperwhisper" # local Whisper dictation; model seed in home.nix
|
2026-09-18 13:58:49 -04:00
|
|
|
"puremac"
|
|
|
|
|
"utm"
|
|
|
|
|
"wezterm"
|
2026-07-18 09:21:51 -04:00
|
|
|
];
|
|
|
|
|
};
|
2026-10-25 13:04:30 -04:00
|
|
|
|
2026-10-25 15:15:23 -04:00
|
|
|
launchd.user.agents = { };
|
2026-07-18 09:21:51 -04:00
|
|
|
}
|
|
|
|
|
|