13 lines
292 B
Bash
Executable File
13 lines
292 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
git commit
|
|
|
|
if [[ $? -ne 0 ]]; then
|
|
echo "Git commit not successful, will not rebuild before commit is complete."
|
|
exit 1
|
|
fi
|
|
|
|
echo "Copying configurations to etc and rebuilding."
|
|
sudo cp /home/adam/nixos-configurations/*.nix /etc/nixos/.
|
|
sudo nixos-rebuild switch
|