fix: flake app for rebuilds

This commit is contained in:
Noah Masur 2023-04-02 18:47:06 -04:00
parent 49c2c013a2
commit e349ac35b8

View File

@ -6,9 +6,9 @@
echo ${pkgs.system}
SYSTEM=${if pkgs.stdenv.isDarwin then "darwin" else "linux"}
if [ "$SYSTEM" == "darwin" ]; then
darwin-rebuild switch --flake github:nmasur/dotfiles#lookingglass
sudo darwin-rebuild switch --flake ${builtins.toString ../.}
else
nixos-rebuild switch --flake github:nmasur/dotfiles
doas nixos-rebuild switch --flake ${builtins.toString ../.}
fi
'');