dotfiles/scripts/update-nix
2024-09-06 10:01:48 -05:00

11 lines
186 B
Bash
Executable file

#!/bin/sh
currentdir=$(pwd)
hostname=$(hostname)
if [[ $hostname == kaladin ]]; then
cd ~/.config/dotfiles
else
cd ~/.dotfiles
fi
nix flake update
nix flake lock
cd $currentdir