update repo path resolution in scripts
This commit is contained in:
parent
a88bd5d492
commit
141e111a48
4 changed files with 10 additions and 9 deletions
|
@ -1,5 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
repo="$HOME/.config/guix"
|
retry="$(dirname $0)/guix-retry"
|
||||||
|
repo="$(realpath "$(dirname $0)/..")"
|
||||||
date="$(date -Iseconds)"
|
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"
|
cp $image "./guix-installer-$date.iso"
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
repo="$HOME/.config/guix"
|
retry="$(dirname $0)/guix-retry"
|
||||||
sudo -E guix-retry guix system -L "$repo/modules" reconfigure "$repo/systems/$(hostname).scm"
|
repo="$(realpath "$(dirname $0)/..")"
|
||||||
|
sudo -E "$retry" guix system -L "$repo/modules" reconfigure "$repo/systems/$(hostname).scm"
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
repo="$HOME/.config/guix"
|
retry="$(dirname $0)/guix-retry"
|
||||||
guix-retry guix home -L "$repo/modules" reconfigure "$repo/home/home.scm"
|
repo="$(realpath "$(dirname $0)/..")"
|
||||||
|
"$retry" guix home -L "$repo/modules" reconfigure "$repo/home/home.scm"
|
||||||
home-manager switch
|
home-manager switch
|
||||||
|
|
|
@ -15,9 +15,7 @@
|
||||||
;;
|
;;
|
||||||
|
|
||||||
(define %dotfiles-dir
|
(define %dotfiles-dir
|
||||||
(string-append
|
(dirname (dirname (current-filename))))
|
||||||
(getenv "HOME")
|
|
||||||
"/.config/guix"))
|
|
||||||
|
|
||||||
(define %guix-channels-file
|
(define %guix-channels-file
|
||||||
(string-append %dotfiles-dir "/channels.scm"))
|
(string-append %dotfiles-dir "/channels.scm"))
|
||||||
|
|
Loading…
Reference in a new issue