Personal system configuration managed with Nix, nix-darwin and home-manager.
make switch targets the current hostname.
Personal MacBook Pro. nix-darwin + home-manager on aarch64-darwin. Config: machines/mbp-albttx.
Hetzner dedicated NixOS server (x86_64-linux). Rebuild on the box with make switch or nixos-rebuild switch --flake .#ipad-box. Config: machines/ipad-box.
# install nix
curl -L https://nixos.org/nix/install | sh -s -- --daemon
# install home-manager
nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
| Command | Description |
|---|---|
make |
Build and switch (alias for make switch) |
make switch |
Build and switch to the current hostname |
make fmt |
Format all .nix files |
make clean |
Run nix garbage collection |
make fclean |
Deep clean (requires root) |
| Command | Description |
|---|---|
make update |
Update all flake inputs |
make update.nix |
Update nix channels only |
make update.osx |
Update nix-darwin only |
make update.home |
Update home-manager only |
make update.emacs |
Update emacs channels only |
