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