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/home-reconfigure | 8 +++++++- files/.bin/system-reconfigure | 9 ++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) (limited to 'files/.bin') diff --git a/files/.bin/home-reconfigure b/files/.bin/home-reconfigure index f3a4e5f..4d16cc0 100755 --- a/files/.bin/home-reconfigure +++ b/files/.bin/home-reconfigure @@ -1,3 +1,9 @@ #!/bin/sh -JD_HOME=1 guix home -L $HOME/dotfiles/guix reconfigure $HOME/dotfiles/guix/jd/desktops/$(hostname).scm +if [ -n "$1" ]; then + guix home -L $1 reconfigure \ + -e '((@@ (jd utils) current-home))' +else + guix home reconfigure \ + -e '((@@ (jd utils) current-home))' +fi; 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