Commit 46982af0 authored by Todor Kondic's avatar Todor Kondic
Browse files

tasks/guix.yml: Update

parent c160f443
......@@ -15,44 +15,52 @@
dest: "/home/{{ item.login }}/.config/guix/channels.scm"
become_user: "{{ item.login }}"
loop: "{{ users }}"
- name: Guix pull everywhere.
command:
cmd: /usr/bin/bash -l -c 'guix pull'
- name: Copy clean channels.
copy:
src: files/home/user/.config/guix/clean-channels.scm
dest: "/home/{{ item.login }}/.config/guix/clean-channels.scm"
become_user: "{{ item.login }}"
loop: "{{ users }}"
tags: guix-pull
# - name: Guix pull everywhere.
# command:
# cmd: /usr/bin/bash -l -c 'guix pull'
# become_user: "{{ item.login }}"
# loop: "{{ users }}"
# tags: guix-pull
- name: Run guix pull as root.
tags: guix-pull
command:
cmd: guix pull
# - name: Run guix pull as root.
# tags: guix-pull
# 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: Install packages.
command:
cmd: /usr/bin/bash -l -c 'guix package -c4 -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: Copy package manifest.
# copy:
# src: files/etc/guix_manifest.scm
# dest: /etc/guix_manifest.scm
# tags: guix-inst-pkg
- name: Install guix managed programs.
tags: guix-copy-bin
copy:
src: files/home/user/.local/bin/
dest: "/home/{{ item.login }}/.local/bin"
mode: '0744'
owner: "{{ item.login }}"
group: "{{ item.login }}"
loop: "{{ users }}"
# - 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 guix managed programs.
# tags: guix-copy-bin
# copy:
# src: files/home/user/.local/bin/
# dest: "/home/{{ item.login }}/.local/bin"
# mode: '0744'
# owner: "{{ item.login }}"
# group: "{{ item.login }}"
# loop: "{{ users }}"
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