diff options
author | jdlugosz963 <jdlugosz963@gmail.com> | 2024-09-20 15:49:53 +0200 |
---|---|---|
committer | jdlugosz963 <jdlugosz963@gmail.com> | 2024-09-20 16:35:16 +0200 |
commit | c7c66c55061df867c7af05c6c82ccbe6f498c330 (patch) | |
tree | 8b62323d26cb3db7912bc604a0b43f921660b627 /files | |
parent | 41209e53c1a79947908e88e5f46b3569db4e93e2 (diff) | |
download | dotfiles-c7c66c55061df867c7af05c6c82ccbe6f498c330.tar.gz dotfiles-c7c66c55061df867c7af05c6c82ccbe6f498c330.zip |
Change the way i reconfigure my system.
Diffstat (limited to 'files')
-rwxr-xr-x | files/.bin/home-reconfigure | 8 | ||||
-rwxr-xr-x | files/.bin/system-reconfigure | 9 |
2 files changed, 15 insertions, 2 deletions
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 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | JD_HOME=1 guix home -L $HOME/dotfiles/guix reconfigure $HOME/dotfiles/guix/jd/desktops/$(hostname).scm | 3 | if [ -n "$1" ]; then |
4 | guix home -L $1 reconfigure \ | ||
5 | -e '((@@ (jd utils) current-home))' | ||
6 | else | ||
7 | guix home reconfigure \ | ||
8 | -e '((@@ (jd utils) current-home))' | ||
9 | 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 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | sudo -E guix system -L $HOME/dotfiles/guix reconfigure $HOME/dotfiles/guix/jd/desktops/$(hostname).scm \ No newline at end of file | 3 | if [ -n "$1" ]; then |
4 | sudo -E guix system -L $1 reconfigure \ | ||
5 | -e '((@@ (jd utils) current-operating-system))' | ||
6 | else | ||
7 | sudo -E guix system reconfigure \ | ||
8 | -e '((@@ (jd utils) current-operating-system))' | ||
9 | fi; | ||
10 | |||