diff --git a/hosts/teidesu-osx/.gitignore b/hosts/teidesu-osx/.gitignore new file mode 100644 index 0000000..e37fa3c --- /dev/null +++ b/hosts/teidesu-osx/.gitignore @@ -0,0 +1 @@ +/arc-setup.nix \ No newline at end of file diff --git a/switch b/switch index 2ae2302..a75eaa4 100755 --- a/switch +++ b/switch @@ -24,6 +24,11 @@ if [ "$1" == "boot" ]; then fi if [ "$(uname)" == "Darwin" ]; then + git add -f hosts/teidesu-osx/arc-setup.nix + function restore { + git restore --staged hosts/teidesu-osx/arc-setup.nix + } + trap restore EXIT if command -v darwin-rebuild &> /dev/null; then darwin-rebuild switch --flake . $args $@ else