Skip to content

Commit 4f68f13

Browse files
committed
update update script
1 parent 39a2f63 commit 4f68f13

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

scripts/igm-update

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,16 @@
11
#!/usr/bin/env -S bash -xe
22

33
DOTFILES=$HOME/dotfiles
4-
cd $DOTFILES
5-
64
source $DOTFILES/scripts/igm-helpers.sh
7-
FLAKE_PATH=$(flake_path)
8-
echo "Using flake at path $FLAKE_PATH."
95

6+
cd $DOTFILES
107
zsh -c 'nixfmt **/*.nix'
118

12-
nix_cmd() {
13-
nix --extra-experimental-features flakes --extra-experimental-features nix-command $@
14-
}
15-
169
nix_cmd flake update $DOTFILES/nix
1710
nix_cmd flake update
18-
19-
nix_cmd flake update $FLAKE_PATH
20-
2111
git add .
12+
13+
FLAKE_PATH=$(flake_path)
14+
echo "Using flake at path $FLAKE_PATH."
15+
cd $FLAKE_PATH
16+
nix_cmd flake update

0 commit comments

Comments
 (0)