update repo path resolution in scripts

This commit is contained in:
Murphy 2024-12-12 19:15:02 -05:00
parent a88bd5d492
commit 141e111a48
Signed by: freya
GPG key ID: 9FBC6FFD6D2DBF17
4 changed files with 10 additions and 9 deletions

View file

@ -1,5 +1,6 @@
#!/bin/sh
repo="$HOME/.config/guix"
retry="$(dirname $0)/guix-retry"
repo="$(realpath "$(dirname $0)/..")"
date="$(date -Iseconds)"
image=$(guix-retry guix system -L "$repo/modules" image -t iso9660 "$repo/systems/installer.scm")
image=$("$retry" guix system -L "$repo/modules" image -t iso9660 "$repo/systems/installer.scm")
cp $image "./guix-installer-$date.iso"

View file

@ -1,3 +1,4 @@
#!/bin/sh
repo="$HOME/.config/guix"
sudo -E guix-retry guix system -L "$repo/modules" reconfigure "$repo/systems/$(hostname).scm"
retry="$(dirname $0)/guix-retry"
repo="$(realpath "$(dirname $0)/..")"
sudo -E "$retry" guix system -L "$repo/modules" reconfigure "$repo/systems/$(hostname).scm"

View file

@ -1,4 +1,5 @@
#!/bin/sh
repo="$HOME/.config/guix"
guix-retry guix home -L "$repo/modules" reconfigure "$repo/home/home.scm"
retry="$(dirname $0)/guix-retry"
repo="$(realpath "$(dirname $0)/..")"
"$retry" guix home -L "$repo/modules" reconfigure "$repo/home/home.scm"
home-manager switch

View file

@ -15,9 +15,7 @@
;;
(define %dotfiles-dir
(string-append
(getenv "HOME")
"/.config/guix"))
(dirname (dirname (current-filename))))
(define %guix-channels-file
(string-append %dotfiles-dir "/channels.scm"))