Files
dotfiles/bin/,nixup

12 lines
288 B
Bash
Executable File

#!/usr/bin/env bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
pushd $SCRIPT_DIR/../nix &> /dev/null
if which home-manager &> /dev/null; then
home-manager switch --flake ".#std"
else
nix run home-manager/master -- switch --flake ".#std"
fi