Nix flakes-based NixOS configuration with home-manager integration.
~/dotfiles/
├── flake.nix # Entry point - defines inputs and hosts
├── flake.lock # Pinned dependency versions
├── hosts/
│ ├── thinkpad/ # hostname: motherbase
│ │ ├── default.nix
│ │ └── hardware-configuration.nix
│ └── slimbook/ # hostname: lz
│ └── default.nix
├── modules/
│ ├── common.nix # Shared system configuration
│ ├── falcon-sensor.nix # CrowdStrike Falcon module
│ └── home/ # Home-manager configuration
│ ├── home.nix # User packages, git, shell config
│ ├── vim.nix # Neovim + plugins
│ ├── nvim.lua # Neovim init
│ ├── lsp.lua # LSP configuration
│ └── blink.lua # Blink completion
├── packages/
│ ├── git-recent.nix # git-recent script package
│ ├── git-recent # Source script
│ └── falcon-sensor.nix # CrowdStrike package
└── home/ # Non-Nix dotfiles (stow)
└── .config/
├── iamb/ # Matrix client config
├── niri/ # Niri compositor
├── waybar/ # Status bar
├── xkb/ # Keyboard layouts
└── starship.toml # Shell prompt
# Symlink so nixos-rebuild finds the flake automatically
sudo ln -s /home/gipsy/dotfiles /etc/nixos
# Stow non-Nix dotfiles
stow home
sudo nixos-rebuild switch # Rebuild system
sudo nixos-rebuild dry-run # Test without activating
nix flake update # Update all inputs
nix flake lock --update-input nixpkgs # Update single input
- Boot NixOS installer, install minimal system
- Clone repo:
git clone <url> ~/dotfiles && cd ~/dotfiles
- Copy hardware config:
cp /etc/nixos/hardware-configuration.nix hosts/<machine>/
- Switch:
sudo nixos-rebuild switch --flake .#<hostname>
- Stow configs:
stow home
mkdir -p hosts/<name>
- Create
hosts/<name>/default.nix (see existing hosts)
cp /etc/nixos/hardware-configuration.nix hosts/<name>/
- Add to
flake.nix: <hostname> = mkHost "<name>";
| Input |
Description |
nixpkgs |
NixOS 25.11 |
home-manager |
Home-manager release-25.11 |
iamb |
Matrix TUI client |
mdfried |
Markdown TUI renderer |
| Hostname |
Machine |
Description |
motherbase |
ThinkPad |
Intel laptop, Cloudflare Warp, Falcon Sensor |
lz |
Slimbook |
AMD/NVIDIA hybrid, PRIME offload |