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

tasks/guix.yml: Update

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