Skip to content

Install NixDots

Generate configuration

Create a new configuration for the current system.

Terminal window
config_dir=configs/nixos/$(hostname)
mkdir $config_dir
nixos-generate-config --dir $config_dir
mv $config_dir/configuration.nix $config_dir/default.nix

Initial build

The initial build may differ, because some missing dependencies need to be substituted.

Terminal window
nix run nixpkgs#nh os switch .

Subsequent builds

Terminal window
nh os switch .