dotfiles/nix/update.sh
2023-05-28 21:42:59 -04:00

12 lines
309 B
Bash
Executable file

#!/bin/bash
pushd ~/.dotfiles
printf "Updating devenv\n"
nix flake update
pushd ./nix/home-manager
printf "Updating home-manager\n"
nix flake update
if [[ $(uname) == "Darwin" ]]; then
home-manager switch --flake ".#aarch64-darwin-acicchetti"
else
home-manager switch --flake '.#x86_64-linux-acicchetti'
fi