Commit fb186502 authored by Todor Kondic's avatar Todor Kondic
Browse files

guix: Install to separate, managed profile

This way, we can keep the standard profile pristine and avoid
conflicts with the host system while selecting the correct guix
executable for a given user.
parent 46982af0
......@@ -8,5 +8,5 @@ env -i HOME="$HOME"\
DISPLAY=":50"\
TERM="$TERM"\
PATH=/usr/local/sbin/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin\
bash -c "source '$HOME'/.guix-profile/etc/profile
'$HOME'/.guix-profile/bin/chromium"
bash -c "source '$HOME'/.man-guix-prof/etc/profile
'$HOME'/.man-guix-prof/bin/chromium"
......@@ -8,5 +8,5 @@ env -i HOME="$HOME"\
DISPLAY=":50"\
TERM="$TERM"\
PATH=/usr/local/sbin/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin\
bash -c "source '$HOME'/.guix-profile/etc/profile
'$HOME'/.guix-profile/bin/emacs"
bash -c "source '$HOME'/.man-guix-prof/etc/profile
'$HOME'/.man-guix-prof/bin/emacs"
......@@ -7,5 +7,5 @@ env -i HOME="$HOME"\
USER="$USER"\
DISPLAY=":50"\
PATH=/usr/local/sbin/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin\
bash -c "source '$HOME'/.guix-profile/etc/profile
'$HOME'/.guix-profile/bin/Rscript '$HOME'/.local/bin/run-ss.R"
bash -c "source '$HOME'/.man-guix-prof/etc/profile
'$HOME'/.man-guix-prof/bin/Rscript '$HOME'/.local/bin/run-ss.R"
......@@ -8,5 +8,5 @@ env -i HOME="$HOME"\
DISPLAY=":50"\
TERM="$TERM"\
PATH=/usr/local/sbin/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin\
bash -c "source '$HOME'/.guix-profile/etc/profile
'$HOME'/.guix-profile/bin/R"
bash -c "source '$HOME'/.man-guix-prof/etc/profile
'$HOME'/.man-guix-prof/bin/R"
......@@ -8,5 +8,5 @@ env -i HOME="$HOME"\
DISPLAY=":50"\
TERM="$TERM"\
PATH=/usr/local/sbin/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin\
bash -c "source '$HOME'/.guix-profile/etc/profile
'$HOME'/.guix-profile/bin/urxvt"
bash -c "source '$HOME'/.man-guix-prof/etc/profile
'$HOME'/.man-guix-prof/bin/urxvt"
......@@ -17,19 +17,19 @@
loop: "{{ users }}"
- name: Copy clean channels.
- name: Copy nonfree channels.
copy:
src: files/home/user/.config/guix/clean-channels.scm
dest: "/home/{{ item.login }}/.config/guix/clean-channels.scm"
src: files/home/user/.config/guix/channels-nonfree.scm
dest: "/home/{{ item.login }}/.config/guix/channels-nonfree.scm"
become_user: "{{ item.login }}"
loop: "{{ users }}"
# - name: Guix pull everywhere.
# command:
# cmd: /usr/bin/bash -l -c 'guix pull'
# become_user: "{{ item.login }}"
# loop: "{{ users }}"
# tags: guix-pull
- name: Guix pull everywhere.
command:
cmd: /usr/bin/bash -l -c 'guix pull -c6'
become_user: "{{ item.login }}"
loop: "{{ users }}"
tags: guix-pull
......@@ -38,22 +38,22 @@
# command:
# cmd: guix pull
# - name: Copy package manifest.
# copy:
# src: files/etc/guix_manifest.scm
# dest: /etc/guix_manifest.scm
# tags: guix-inst-pkg
- name: Copy package manifest.
copy:
src: files/etc/guix_manifest.scm
dest: /etc/guix_manifest.scm
tags: guix-inst-pkg
# - name: Install packages.
# command:
# cmd: /usr/bin/bash -l -c 'guix package -c8 -m /etc/guix_manifest.scm --fallback'
# tags: guix-inst-pkg
# become_user: "{{ item.login }}"
# retries: 20
# delay: 5
# register: result
# until: result.rc == 0
# loop: "{{ users }}"
- name: Install packages.
command:
cmd: /usr/bin/bash -l -c 'guix package -c8 -m /etc/guix_manifest.scm --fallback -p ~/.man-guix-prof'
tags: guix-inst-pkg
become_user: "{{ item.login }}"
retries: 20
delay: 5
register: result
until: result.rc == 0
loop: "{{ users }}"
# - name: Install guix managed programs.
# tags: guix-copy-bin
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment