Files
notfiles/modules/darwin.nix
T
2026-08-03 10:55:54 -04:00

77 lines
1.6 KiB
Nix

{ inputs, pkgs, ... }:
{
# We installed Nix via the *Determinate* package (the installer
# asks on macOS Tahoe), Determinate manages /etc/nix/nix.conf itself and
# nix-darwin must NOT. Thus, we have to set `nix.enable = false;`.
nix.enable = false;
nixpkgs.config.allowUnfree = true;
nixpkgs.overlays = [ inputs.nix4vscode.overlays.default ];
environment.systemPackages = with pkgs; [
wget
curl
git
tree
coreutils
];
programs.zsh.enable = true;
homebrew = {
enable = true;
onActivation = {
autoUpdate = false;
upgrade = false;
cleanup = "zap";
};
casks = [
"1password"
"1password-cli"
"dropbox"
"zoom"
"spotify"
"brave-browser"
"gimp"
"orbstack"
];
};
# macOS preferences, declaratively. Tweak to taste.
# Full option list: https://nix-darwin.github.io/nix-darwin/manual/
system.defaults = {
NSGlobalDomain = {
KeyRepeat = 2;
InitialKeyRepeat = 15;
AppleShowAllExtensions = true;
ApplePressAndHoldEnabled = false;
NSDocumentSaveNewDocumentsToCloud = false;
};
dock = {
autohide = true;
show-recents = false;
mru-spaces = false;
};
finder = {
AppleShowAllFiles = true;
FXPreferredViewStyle = "Nlsv";
ShowPathbar = true;
ShowStatusBar = true;
_FXSortFoldersFirst = true;
};
loginwindow = {
GuestEnabled = false;
};
menuExtraClock = {
ShowAMPM = true;
ShowDate = 1;
ShowDayOfMonth = true;
ShowDayOfWeek = true;
ShowSeconds = true;
};
trackpad.Clicking = false;
};
}