my system configs managed with nix flakes. handles both nixos (mandelbrot) and nix-darwin (macbook).
nix/- system configurations for each machinemandelbrot/- nixos desktop (nvidia gpu, niri compositor, ollama server)Alexs-Macbook-Pro/- nix-darwin config for macoscommon/- shared configuration between systems
config/- dotfiles for various programsfish/- shell config with custom functions and completionsnvim/- neovim setupghostty/- terminal emulator configyazi/- file manager with tokyo-night themestarship.toml- prompt configniri/- compositor config (nixos only)rofi/- launcher/menu systemgh/,gopass/,argocd/,zed/- tool configs
fonts/- GoMono nerd fontscripts/- utility scripts (aws helpers, git, hyprpaper, etc)flake.nix- defines all systems and their dependencies
- niri compositor with nvidia prime offload
- ollama serving on tailnet (gpu accelerated)
- steam, bluetooth, pipewire audio
- auto-login to greeter
- homebrew integration for gui apps and missing packages
- most cli tools via nix
- ghostty, zed, vscode, spotify, etc via casks
both systems use home-manager to symlink configs from this repo:
- fish shell (aliases, functions, paths, env vars)
- neovim with treesitter, packer
- git config (gpg signing, user info)
- tmux, starship, yazi, jq, fd, fzf, go
- ghostty with custom colorscheme
see setup.md for full details. nix-based setup is:
# install nix with flakes
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
# get secrets from bitwarden (ssh keys, gpg)
# see setup.md
# for nixos:
sudo nixos-rebuild switch --flake github:Briansbum/dotfiles#mandelbrot
# for macos:
darwin-rebuild switch --flake github:Briansbum/dotfiles#Alexs-MacBook-Prothe correct way (declarative, pulls from git):
# make changes, commit, push to github
# for nixos:
sudo nixos-rebuild switch --flake github:Briansbum/dotfiles#mandelbrot --refresh
# for macos:
darwin-rebuild switch --flake github:Briansbum/dotfiles#Alexs-MacBook-Pro --refreshfast method for local testing (impure):
cd ~/devel/dotfiles
# for nixos:
sudo nixos-rebuild switch --flake .#mandelbrot
# for macos:
darwin-rebuild switch --flake .#Alexs-MacBook-Pro