|
121 | 121 | apt: |
122 | 122 | name: sudo |
123 | 123 | 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 |
138 | 140 | # - name: Add kasm-user to nix-users group |
139 | 141 | # shell: usermod -aG nix-users kasm-user |
140 | 142 | # - name: Remove existing /nix/var/nix/profiles/per-user/root directory |
|
0 commit comments