- Manage multiple hosts (NixOS VM, Macbook)
- Manage dotfiles, configurable per host
- hardware/ namespaced hardware-configuration.nix files
- machines/ namespaced configuration.nix files
- users/
- namespaced user accounts and home-manager configs
- shared dotfiles
- shared common home config
- lib/ library funcs
- vm-aarch64
- NixOS VM on personal Macbook M1
Rebuild a host?
Inside this flake dir, run switch and specify the host (defined in flake.nix outputs):
sudo nixos-rebuild switch --flake ".#${host}"
Setup Mac Home?
Home Manager is installed standalone on personal Macbook M1. A separate home.nix
file exists to configure just the user environment there. Run switch and point it to this file:
home-manager switch -f users/alex-darwin/home.nix -b backup
Once darwin-nix is setup, this will change.
- Inspired by mitchellh/nixos-config
- Excellent overview in NixOS Setup Guide - Configuration / Home-Manager / Flakes
- Requires basic familarity with Nix language but otherwise very approachable
- home-manager configuration options
- home-manager NixOS module options
- Configure ts home
- Setup darwin-nix