add .bin/update-{channels,home,system}
This commit is contained in:
parent
e75c2725a7
commit
e0e2b2e103
|
@ -1,3 +1,14 @@
|
||||||
#!/bin/sh
|
#!/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 pull --channels=$HOME/.config/guix/base-channels.scm
|
||||||
guix describe --format=channels > ~/.config/guix/channels.scm
|
guix describe --format=channels > ~/.config/guix/channels.scm
|
||||||
|
|
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue