Quick start (NixOS):
git clone <this repo>
cd nixconf
sudo nixos-rebuild switch --flake .#<host>Example (VMware):
sudo nixos-rebuild switch --flake ~/nixconf#vmwareHome Manager (non-NixOS / standalone):
nix build --impure .#homeConfigurations.<name>.activationPackage
./result/activateHost-specific details (hardware configs, bootloader, etc.) live in hosts/README.md.
I was just quickly testing this inside of Docker as a quick validation before using a VM. It may no longer work in Docker though
Run (build validates Home Manager config):
docker build -t nixos-test .See hosts/README.md for Dell and VMware setup.
Optional re-check + activation in a fresh container (drops into fish):
docker run --rm -it nixos-testTo poke around inside the container (fish):
docker run --rm -it --entrypoint sh nixos-test -lc ". /home/dev/.nix-profile/etc/profile.d/hm-session-vars.sh && exec /home/dev/.nix-profile/bin/fish"Live edit + refresh without rebuilding the image (fish):
docker run --rm -it -v "$PWD":/workspace --entrypoint sh nixos-test -lc "exec /home/dev/.nix-profile/bin/fish"Inside the container (after activation, fish will be on PATH):
cd /workspace
nix build --impure .#homeConfigurations.docker.activationPackage
./result/activate
. /home/dev/.nix-profile/etc/profile.d/hm-session-vars.sh