Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
12345678910111213141516171819202122232425262728#!/usr/bin/env bashSCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)pushd "$SCRIPT_DIR" || exit 1rm -rf ~/.config/fishexport NIX_CONFIG="extra-experimental-features = nix-command flakes pipe-operators pipe-operatorextra-substituters = https://cache-v6.junco.dev?priority=41extra-trusted-public-keys = cache-v6:tXeE+WhO6k2OoUoNSzmQVIckjXtl14mtO+z0ZwAIork="case "$(uname)" inDarwin) set -e artifact=$(nix shell nixpkgs#git -c nix build .#darwin/$(hostname -s) --print-out-paths --extra-experimental-features "nix-command flakes pipe-operators pipe-operator") set +e sudo "${artifact}/sw/bin/darwin-rebuild" switch --flake ~/.dotfiles --option extra-experimental-features "nix-command flakes pipe-operators pipe-operator" chsh -s /run/current-system/sw/bin/fish ;;Linux) nix run .#hm -- switch ;;*) echo "nope, unsupported platform" ;;esac