10 lines
211 B
Text
10 lines
211 B
Text
|
#!/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
|