-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKinit_guix.sh
executable file
·46 lines (31 loc) · 1.04 KB
/
WORKinit_guix.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
# sometimes Guix Doesnt make this folder so i do that manuallly
#sudo mkdir -p /var/guix/profiles/per-user/$USER
#sudo chown -R $USER:$USER /var/guix/profiles/per-user/$USER
mkdir ~/.config
# Exit immediately if any command fails
set -e
# installation script pulled from official documentation
echo "Downloading Guix installer..."
cd /tmp
sudo wget https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh
sudo chmod +x guix-install.sh
# run the installer
echo "Running Guix installer..."
sudo ./guix-install.sh
mkdir $HOME/src/guix-config
sudo mkdir -p /var/guix/profiles/per-user/$USER
sudo chown -R $USER:$USER /var/guix/profiles/per-user/$USER
cp -r $PWD/guix-config/dotfiles/bash/* ~/src/guix-config/
# updating guix
echo "Updating package repository..."
sudo guix pull
guix pull
# installing git
#guix install git --no-substitutes
#mkdir ~/Desktop
#cd ~/Desktop
#git clone https://github.com/fislysandi/guix-kickstart
$PWD/scripts/./guixlinks.sh
#. /guixlinks.sh
#guix home reconfigure home-kickstart.scm --no-substitutes