dotfiles/scripts/update-nix

12 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