From c7c66c55061df867c7af05c6c82ccbe6f498c330 Mon Sep 17 00:00:00 2001 From: jdlugosz963 Date: Fri, 20 Sep 2024 15:49:53 +0200 Subject: Change the way i reconfigure my system. --- files/.bin/system-reconfigure | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'files/.bin/system-reconfigure') diff --git a/files/.bin/system-reconfigure b/files/.bin/system-reconfigure index c4c1a05..dae18f6 100755 --- a/files/.bin/system-reconfigure +++ b/files/.bin/system-reconfigure @@ -1,3 +1,10 @@ #!/bin/sh -sudo -E guix system -L $HOME/dotfiles/guix reconfigure $HOME/dotfiles/guix/jd/desktops/$(hostname).scm \ No newline at end of file +if [ -n "$1" ]; then + sudo -E guix system -L $1 reconfigure \ + -e '((@@ (jd utils) current-operating-system))' +else + sudo -E guix system reconfigure \ + -e '((@@ (jd utils) current-operating-system))' +fi; + -- cgit v1.2.3