added bin to path and fixed scripts

This commit is contained in:
Moritz Böhme 2021-10-06 17:37:15 +02:00
parent 7ad9eb5726
commit 42208d0029
7 changed files with 18 additions and 58 deletions

9
bin/sup Executable file
View file

@ -0,0 +1,9 @@
#!/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