Skip to content

Commit

Permalink
update update script
Browse files Browse the repository at this point in the history
  • Loading branch information
macalinao committed Nov 13, 2024
1 parent 39a2f63 commit 4f68f13
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions scripts/igm-update
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
#!/usr/bin/env -S bash -xe

DOTFILES=$HOME/dotfiles
cd $DOTFILES

source $DOTFILES/scripts/igm-helpers.sh
FLAKE_PATH=$(flake_path)
echo "Using flake at path $FLAKE_PATH."

cd $DOTFILES
zsh -c 'nixfmt **/*.nix'

nix_cmd() {
nix --extra-experimental-features flakes --extra-experimental-features nix-command $@
}

nix_cmd flake update $DOTFILES/nix
nix_cmd flake update

nix_cmd flake update $FLAKE_PATH

git add .

FLAKE_PATH=$(flake_path)
echo "Using flake at path $FLAKE_PATH."
cd $FLAKE_PATH
nix_cmd flake update

0 comments on commit 4f68f13

Please sign in to comment.