Personal configuration files managed with chezmoi, using Nix for packages and Bitwarden for secrets.
⚠️ Warning: Review the code before applying. These are personal configurations—fork and customize for your own use.
- Cross-platform: NixOS, macOS (nix-darwin), Windows, WSL
- Declarative packages: NixOS/nix-darwin system configs, winget for Windows
- Secrets management: Bitwarden integration for SSH keys and tokens
- Shell frameworks: Zim for Zsh (Unix), Oh My Posh for PowerShell (Windows)
- Development environments: Per-project devenv.nix, LazyVim Neovim setup
- Bitwarden account with items using unique, specific names (e.g.,
ssh-key-mainnotmain)⚠️ Limitation: Chezmoi's Bitwarden integration cannot filter by type or folder, only by name with fuzzy matching- Avoid common words that might match multiple items
macOS/NixOS:
curl -sfL https://raw.githubusercontent.com/mariomarin/dotfiles/main/.install/bootstrap-unix.sh | shWindows:
iwr -useb https://raw.githubusercontent.com/mariomarin/dotfiles/main/.install/bootstrap-windows.ps1 | iexChezmoi - edit ~/.config/chezmoi/chezmoi.toml:
[data.machineConfig.features]
kanata = false # Disable keyboard remappingNix - username syncs from chezmoi config automatically.
Kanata is disabled by default for unknown machines.
The bootstrap script will:
- Install Nix package manager (macOS only, if not present)
- Clone the repository
- Enter nix-shell environment (Unix) or install tools via winget (Windows)
- Setup Bitwarden and unlock vault
- Prompt for hostname selection
- Initialize chezmoi
- Automatically apply OS-specific system configuration (NixOS/nix-darwin)
After bootstrap completes, your system is fully configured!
# macOS: Update nix-darwin configuration
cd ~/.local/share/chezmoi && just darwin
# NixOS: Update system configuration
cd ~/.local/share/chezmoi && just nixos
# Apply dotfile changes only (no system rebuild)
cd ~/.local/share/chezmoi && just apply💡 NixOS
System manages: All packages, services, boot, networking
Update: just nixos
Docs: nix/nixos/README.md
💡 macOS (nix-darwin)
System manages: CLI tools, GUI apps (nixpkgs), Homebrew casks (apps not in nixpkgs)
Update: just darwin
Docs: nix/darwin/README.md
💡 Windows
Packages: Managed via winget (.chezmoidata/packages.yaml)
Development: Use WSL with NixOS for devenv
WSL Setup: wsl/README.md
📖 Detailed installation guide: .install/README.md
.
├── nix/ # Nix configurations
│ ├── nixos/ # NixOS system configuration
│ ├── darwin/ # macOS (nix-darwin) configuration
│ └── common/ # Shared Nix modules
├── private_dot_config/ # Application configs → ~/.config/
│ ├── nvim/ # Neovim (LazyVim)
│ ├── tmux/ # Tmux configuration
│ ├── zsh/ # Zsh shell configuration
│ ├── zim/ # Zim framework for Zsh
│ └── kanata/ # Keyboard remapping
├── private_dot_local/ # Local data → ~/.local/
│ ├── bin/ # User binaries
│ └── share/ # Shared data
├── docs/ # Documentation
├── wsl/ # WSL-specific setup
└── .chezmoiscripts/ # Scripts run during apply
For chezmoi naming conventions, see the official documentation.
| Topic | Location |
|---|---|
| NixOS setup | nix/nixos/README.md |
| macOS setup | nix/darwin/README.md |
| WSL setup | wsl/README.md |
| Secrets management | docs/secrets.md |
| Keybindings (all) | docs/keybindings.md |
| Agent skills (vendored; update PRs need manual review) | .claude/skills/skills-lock.json |
# List all available tasks
just --list
# Apply dotfiles (default)
just
# Preview changes before applying
just diff
# Update everything (system packages, plugins, etc.)
just update
# System operations
just nixos # NixOS rebuild (nix/nixos/switch)
# Component operations
just nvim # Sync Neovim plugins
just tmux # Reload tmux config
just zim # Update Zim modules
# Development
just format # Format all files
just lint # Run linting checksFork this repository and make it yours. Key files to modify:
Package Management:
- NixOS:
nix/nixos/modules/*.nix- All packages via NixOS modules - macOS:
nix/darwin/modules/*.nix- All packages via nix-darwin - Windows:
.chezmoidata/packages.yaml- Declarative winget packages only
Configuration Files:
private_dot_config/nvim/- Neovim configurationprivate_dot_config/tmux/- Tmux configurationprivate_dot_config/zsh/- Zsh configuration
Remove personal identifiers:
- Git configuration files
- SSH keys in Bitwarden templates
- Machine-specific settings in
.chezmoidata/machines.yaml
Built with:
- chezmoi - Dotfile management
- Nix - Package management and system configuration
- LazyVim - Neovim configuration framework
- Bitwarden - Secrets management
MIT License - See LICENSE for details.