Make sure to have nix
and home-manager
installed.
To get started, clone my .dotfiles
and nix-config
configurations:
nix-shell -p git --run '
cd ~ &&
git clone [email protected]:Sam-Hobson/.dotfiles.git &&
git clone [email protected]:Sam-Hobson/nix-config.git
'
To use the nix configuration, do:
cd ~/nix-config/
sudo nixos-rebuild switch --upgrade --flake .
nix flake update
home-manager switch --flake .
home-manager expire-generations "now"
nix-collect-garbage -d
nix store optimise