Skip to content

Commit a23247f

Browse files
Revert to using nix installation wrapper script to properly handle --fallback flag
1 parent 5e38e26 commit a23247f

1 file changed

Lines changed: 16 additions & 14 deletions

File tree

‎playbook.yaml‎

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -121,20 +121,22 @@
121121
apt:
122122
name: sudo
123123
update_cache: yes
124-
- name: Download nix tarball {{ nix_version }}
125-
shell: curl -L https://releases.nixos.org/nix/nix-{{ nix_version }}/nix-{{ nix_version }}-x86\_64-linux.tar.xz -o {{ nix_installer_dir }}.tar.xz
126-
- name: Extract nix tarball to /tmp
127-
shell:
128-
cmd: "tar -xvf {{ nix_installer_dir }}.tar.xz"
129-
chdir: /tmp
130-
executable: /bin/bash
131-
args:
132-
creates: "{{ nix_installer_dir }}/install"
133-
- name: Install (single-user) nix using classic nix installer with --fallback (i.e., build from source to dynamically pull OpenSSL version)
134-
shell:
135-
cmd: ./install --no-daemon --fallback
136-
chdir: "{{ nix_installer_dir }}"
137-
executable: /bin/bash
124+
# - name: Download nix tarball {{ nix_version }}
125+
# shell: curl -L https://releases.nixos.org/nix/nix-{{ nix_version }}/nix-{{ nix_version }}-x86\_64-linux.tar.xz -o {{ nix_installer_dir }}.tar.xz
126+
# - name: Extract nix tarball to /tmp
127+
# shell:
128+
# cmd: "tar -xvf {{ nix_installer_dir }}.tar.xz"
129+
# chdir: /tmp
130+
# executable: /bin/bash
131+
# args:
132+
# creates: "{{ nix_installer_dir }}/install"
133+
# - name: Install (single-user) nix using classic nix installer with --fallback (i.e., build from source to dynamically pull OpenSSL version)
134+
# shell:
135+
# cmd: ./install --no-daemon --fallback
136+
# chdir: "{{ nix_installer_dir }}"
137+
# executable: /bin/bash
138+
- name: Download nix installation wrapper and run with --fallback & --no-daemon
139+
shell: curl -L https://nixos.org/nix/install | sh -s -- --fallback --no-daemon
138140
# - name: Add kasm-user to nix-users group
139141
# shell: usermod -aG nix-users kasm-user
140142
# - name: Remove existing /nix/var/nix/profiles/per-user/root directory

0 commit comments

Comments
 (0)