Fix home-manager impurity and add brew configuration

This commit is contained in:
Dave Gallant
2021-06-27 10:34:51 -04:00
parent 860ae35a49
commit 893964169e
18 changed files with 133 additions and 58 deletions

View File

@@ -4,17 +4,17 @@ cd "$(dirname "$0")" || exit
uname="$(uname -s)"
case "${uname}" in
Linux*) machine=linux;;
Darwin*) machine=mac;;
*) machine="unknown"
Linux*) machine=linux ;;
Darwin*) machine=mac ;;
*) machine="unknown" ;;
esac
if [[ "$machine" == "linux" ]]; then
exec nixos-rebuild -I nixos-config="machines/$(hostname)/configuration.nix" "$@" --flake '.#'
elif [[ "$machine" == "mac" ]]; then
exec darwin-rebuild "$@" --flake . --impure # TODO: What is causing this impurity?
else
echo 'Unsupported OS.'
echo 'Exiting...'
exit 1
if [[ "$machine" == "linux" ]]; then
exec nixos-rebuild -I nixos-config="machines/$(hostname)/configuration.nix" "$@" --flake '.#'
elif [[ "$machine" == "mac" ]]; then
exec darwin-rebuild "$@" --flake .
else
echo 'Unsupported OS.'
echo 'Exiting...'
exit 1
fi