My home environment. Packages are pinned using niv.
xcode-select --install
curl -L https://nixos.org/nix/install > nix-install
chmod +x nix-install
./nix-install
nix --version
echo "trusted-users = root $USER" | sudo tee -a /etc/nix/nix.conf && sudo pkill nix-daemon
- Install home-manager:
git clone [email protected]:pwm/nix-home.git ~/nix-home && cd ~/nix-home
bin/hm-install -n <git_name> -e <git_email>
bin/hm-run home-manager switch -b backup
Do whatever change and then run
hm switch
niv update
hm switch
Running the following:
vscode-update-extensions
will look at the current extensions used (via code --list-extensions
), download their latest version and write it out to home/programs/vscode/extensions.json
.
then, as usual, run:
hm switch