dotfiles/bin/sup

10 lines
211 B
Text
Raw Normal View History

2021-10-06 17:37:15 +02:00
#!/usr/bin/env bash
pushd ~/.dotfiles
if [[ $1 =~ (update) ]]; then
sudo nixos-rebuild switch --flake .# --recreate-lock-file
fi
if [[ $1 =~ (apply) ]]; then
sudo nixos-rebuild switch --flake .#
fi
popd