aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-02-26 18:06:50 -0300
committerEuAndreh <eu@euandre.org>2023-02-26 18:06:50 -0300
commit51482ce83804ef5b1a4367e857216c0c506ec849 (patch)
tree39cc550843f774d99ff70a958b9df309b3304e67
parentetc/guix/home.scm: s/upgrade/reconfigure/ in cronjob (diff)
downloaddotfiles-51482ce83804ef5b1a4367e857216c0c506ec849.tar.gz
dotfiles-51482ce83804ef5b1a4367e857216c0c506ec849.tar.xz
bin/reconfigure: Fix detection if running in a Guix system
-rwxr-xr-xbin/reconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/reconfigure b/bin/reconfigure
index de31785..997243c 100755
--- a/bin/reconfigure
+++ b/bin/reconfigure
@@ -64,7 +64,7 @@ shift $((OPTIND - 1))
HOSTNAME="$(hostname)"
-if [ -e "$XDG_CONFIG_HOME"/guix/system.scm ]; then
+if [ -e /run/current-system/configuration.scm ]; then
pass show "$(hostname)"/andreh |
head -n1 |
sudo -ES guix system -v3 reconfigure "$XDG_CONFIG_HOME"/guix/system.scm