add .bin/update-{channels,home,system}

This commit is contained in:
Frieder Schlesier 2024-05-18 20:25:44 +02:00
parent e75c2725a7
commit e0e2b2e103
3 changed files with 33 additions and 0 deletions

View File

@ -1,3 +1,14 @@
#!/bin/sh
GREEN='\033[1;32m'
BLUE='\033[1;34m'
NC='\033[0m'
echo
echo -e "${GREEN}Updating ${BLUE}base-channels${GREEN}...${NC}"
echo
cp -f ~/git/dotfiles/fschl/base-channels.scm ~/.config/guix/base-channels.scm
guix pull --channels=$HOME/.config/guix/base-channels.scm
guix describe --format=channels > ~/.config/guix/channels.scm

11
.bin/update-home Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh
GREEN='\033[1;32m'
BLUE='\033[1;34m'
NC='\033[0m'
echo
echo -e "${GREEN}Updating $HOME for ${BLUE}$(hostname)${GREEN}...${NC}"
echo
RUNNING_GUIX_HOME=1 guix home -L ~/git/dotfiles/ reconfigure ~/git/dotfiles/fschl/systems/$(hostname).scm

11
.bin/update-system Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh
GREEN='\033[1;32m'
BLUE='\033[1;34m'
NC='\033[0m'
echo
echo -e "${GREEN}Updating ${BLUE}$(hostname)${GREEN}...${NC}"
echo
sudo guix system -v 3 -c 4 -L ~/git/dotfiles/ reconfigure ~/git/dotfiles/fschl/systems/$(hostname).scm