aboutsummaryrefslogtreecommitdiffstats
path: root/modules/darwin
diff options
context:
space:
mode:
authorSimen A. W. Olsen <hello@simenandre.no>2026-03-21 18:43:01 +0100
committerSimen A. W. Olsen <hello@simenandre.no>2026-03-21 18:43:01 +0100
commite08f800b6dc1bc6a6a6127c12b7df72bd219d50b (patch)
treed8946586bdda098983322316d02421c57ffb885d /modules/darwin
parent1fd92fcaf3aadea1e9509f859340f57100218c41 (diff)
downloaddotfiles-e08f800b6dc1bc6a6a6127c12b7df72bd219d50b.tar.gz
dotfiles-e08f800b6dc1bc6a6a6127c12b7df72bd219d50b.zip
use nix
Diffstat (limited to 'modules/darwin')
-rw-r--r--modules/darwin/default.nix15
-rw-r--r--modules/darwin/homebrew.nix119
-rw-r--r--modules/darwin/macos.nix3
3 files changed, 69 insertions, 68 deletions
diff --git a/modules/darwin/default.nix b/modules/darwin/default.nix
index 5474b91..5b487ef 100644
--- a/modules/darwin/default.nix
+++ b/modules/darwin/default.nix
@@ -6,8 +6,8 @@
./macos.nix
];
- # Enable experimental Nix features
- nix.settings.experimental-features = "nix-command flakes";
+ # Nix is managed by Determinate installer
+ nix.enable = false;
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
@@ -15,8 +15,17 @@
# System state version – do not change after first installation
system.stateVersion = 5;
+ # Primary user for system defaults and homebrew
+ system.primaryUser = "cobraz";
+
# Enable Touch ID for sudo
- security.pam.enableSudoTouchIdAuth = true;
+ security.pam.services.sudo_local.touchIdAuth = true;
+
+ # Remap Caps Lock to Escape
+ system.keyboard = {
+ enableKeyMapping = true;
+ remapCapsLockToEscape = true;
+ };
# Core system packages available to all users
environment.systemPackages = with pkgs; [
diff --git a/modules/darwin/homebrew.nix b/modules/darwin/homebrew.nix
index 9ac9816..2434d7d 100644
--- a/modules/darwin/homebrew.nix
+++ b/modules/darwin/homebrew.nix
@@ -11,13 +11,10 @@
};
taps = [
- "bramstein/webfonttools"
- "danielgtaylor/restish"
"oven-sh/bun"
"pulumi/tap"
"go-task/tap"
"tursodatabase/tap"
- "yakitrak/yakitrak"
"simenandre/tools"
];
@@ -42,11 +39,7 @@
"openssh"
"nmap"
"wget"
-
- # Security and encryption
- "gnupg"
- "git-secret"
- "ssh-copy-id"
+ "cloudflared"
# Compression libraries and tools
"lz4"
@@ -55,60 +48,58 @@
"libffi"
"p7zip"
"pigz"
- "zopfli"
# Programming languages and runtimes
"golang"
"golangci-lint"
- "python@3.11"
"rust"
"zig"
- "pkl"
-
- # Font tools
- "sfnt2woff"
- "sfnt2woff-zopfli"
- "woff2"
+ "typst"
# JavaScript runtimes and package managers
"bun"
"pnpm"
"volta"
- "corepack"
"deno"
- # REST API clients
- "danielgtaylor/restish/restish"
-
# Version control
"git"
"git-lfs"
+ "git-delta"
"lazygit"
- "microplane"
# Search tools
"ripgrep"
- "ack"
"fzf"
# JSON/YAML processing tools
"jq"
"yq"
+ # Protobuf and gRPC
+ "protobuf"
+ "protoc-gen-go"
+ "protoc-gen-go-grpc"
+
# Cloud and IaC tools
"pulumi"
- "crd2pulumi"
- "kube2pulumi"
"pulumictl"
- "tf2pulumi"
"azure-cli"
"kubectl"
"helm"
"cilium-cli"
"doctl"
"flyctl"
+ "talosctl"
+ "tektoncd-cli"
+ "runpodctl"
# Container tools
+ "docker"
+ "docker-buildx"
+ "docker-compose"
+ "docker-completion"
+ "colima"
"podman"
"podman-compose"
@@ -119,74 +110,74 @@
# Databases and database tools
"turso"
"libpq"
- "sqld"
# Terminal tools
"pv"
"rename"
- "rlwrap"
"tree"
- "screen"
- "vbindiff"
- "tmate"
- "asciinema"
- "dasel"
"tldr"
"starship"
"gh"
- "claude-code"
+ "htop"
+ "opencode"
# HTTP and web servers
"caddy"
"goreleaser"
- # Specific toolsets
- "whalebrew"
- "gd"
+ # Document and media tools
+ "pandoc"
+ "ffmpeg"
+ "tesseract"
"ghostscript"
- "rclone"
"graphviz"
+ # Python tools
+ "pipx"
+
+ # Specific toolsets
+ "rclone"
+
# Mac App Store CLI
"mas"
];
casks = [
- "spotify"
- "slack"
- "sonos"
- "figma"
- "discord"
- "grammarly"
- "microsoft-remote-desktop"
- "postico"
- "cyberduck"
- "adobe-creative-cloud"
+ "1password"
"1password-cli"
- "protonvpn"
- "openvpn-connect"
- "raycast"
- "rectangle"
- "google-chrome"
- "google-drive"
- "karabiner-elements"
- "postman"
- "ghostty"
- "proton-mail"
+ "arc"
+ "basictex"
"claude"
- "font-symbols-only-nerd-font"
+ "discord"
+ "elgato-camera-hub"
+ "figma"
"font-jetbrains-mono"
- "google-cloud-sdk"
- "docker"
- "podman-desktop"
+ "font-symbols-only-nerd-font"
+ "gcloud-cli"
+ "ghostty"
+ "google-chrome"
+ "google-chrome@canary"
+ "google-drive"
+ "libreoffice"
+ "loom"
"microsoft-teams"
- "zoom"
"obsidian"
+ "postico"
+ "proton-mail"
+ "protonvpn"
+ "raycast"
+ "signal"
+ "slack"
+ "sonos"
+ "spotify"
+ "visual-studio-code"
+ "zoom"
];
masApps = {
- "Outline" = 1356178125;
- "Remote Desktop" = 409907375;
+ "Tailscale" = 1475387142;
+ "Jojo" = 1659864300;
+ "reMarkable" = 1276493162;
};
};
}
diff --git a/modules/darwin/macos.nix b/modules/darwin/macos.nix
index 8927903..0dd120a 100644
--- a/modules/darwin/macos.nix
+++ b/modules/darwin/macos.nix
@@ -65,13 +65,14 @@
Clicking = true;
};
+
ActivityMonitor = {
# Show the main window when launching Activity Monitor
OpenMainWindow = true;
# Visualize CPU usage in the Activity Monitor Dock icon
IconType = 5;
# Show all processes in Activity Monitor
- ShowCategory = 0;
+ ShowCategory = 100;
# Sort Activity Monitor results by CPU usage
SortColumn = "CPUUsage";
SortDirection = 0;