dotfiles

shared miscellaneous configuration files between my systems
git clone git://git.eonn.xyz/dotfiles.git
Log | Files | Refs

commit 45e35777e5973cc3f9b3ec78ada2b01c6f6d051a
parent 38793b4a5de422c088dc24b3c8e80d62b04cb2c9
Author: Ian Ressa <ian@eonn.xyz>
Date:   Mon,  5 Sep 2022 17:10:01 -0400

add guix-reconfigure.sh

Diffstat:
Abin/guix-reconfigure.sh | 16++++++++++++++++
1 file changed, 16 insertions(+), 0 deletions(-)

diff --git a/bin/guix-reconfigure.sh b/bin/guix-reconfigure.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +GUIX_SYSTEMS=~/guix-config/system +HOST="" + +if [ "$#" -eq 0 ]; then + if [ -f "$GUIX_SYSTEMS"/"$(hostname)".scm ]; then + HOST="$(hostname)" + else + echo "Please provide a system configuration name." && exit 1 + fi +else + HOST="$1" +fi +CMD="sudo -E guix system --no-bootloader reconfigure "$HOME"/guix-config/system/"$HOST".scm" +echo "$CMD" && $CMD