No description
- Shell 59.3%
- Lua 22.5%
- Nix 15.1%
- Vim Script 3.1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .claude | ||
| config | ||
| darwin | ||
| hosts | ||
| lib | ||
| modules | ||
| roles | ||
| .gitignore | ||
| AGENTS.md | ||
| flake.lock | ||
| flake.nix | ||
| README.md | ||
| stylua.toml | ||
dotfiles
Nix flake: Home Manager on Linux (Arch, Fedora, Debian), nix-darwin + Home Manager on macOS.
Bootstrap
Debian only, first: sudo apt install zsh gcc.
# Nix (upstream, with an uninstaller: /nix/nix-installer uninstall)
curl -sSfL https://artifacts.nixos.org/nix-installer | sh -s -- install --enable-flakes
# Private machine
git clone git@code.neffi.fr:Neffi42/dotfiles.git ~/dotfiles
# Public machine
git clone https://code.neffi.fr/Neffi42/dotfiles.git ~/dotfiles
# First switch (nh takes over afterwards). Quote the flake reference: zsh globs on '#'.
# Linux
nix run home-manager/master -- switch -b backup --flake "$HOME/dotfiles#$USER@$(hostname)"
# macOS (nix-darwin, Home Manager included)
sudo nix run "nix-darwin/master#darwin-rebuild" -- switch --flake "$HOME/dotfiles#nyx"
A new Linux host needs an entry in flake.nix, a hosts/<hostname>.nix, and its ~/.ssh/id_neffi.pub in lib/identity.nix.
Daily use
fresh # pull, switch, upgrade distro packages (Homebrew on macOS) and flatpaks
fresh --bump # same, after updating flake.lock; commits and pushes the lock if the switch worked
nh home switch # apply local changes to the repo (nh darwin switch on macOS)