Skip to content

Commit 3357c1d

Browse files
install nix using nix-installer
as per https://zero-to-nix.com/start/install/ - run nix-installer with --no-confirm
1 parent b280cd5 commit 3357c1d

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

playbook.yaml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,20 @@
155155
shell:
156156
cmd: mkdir -m 0755 /nix && chown root /nix
157157
executable: /bin/bash
158-
- name: Install nix (as single-user) # as per https://nixos.org/download/#download-nix
158+
- name: Download nix-installer # as https://zero-to-nix.com/start/install/
159159
shell:
160-
cmd: set -x; sh <(curl -L https://nixos.org/nix/install) --no-daemon
160+
cmd: curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix > nix-installer.sh
161+
chdir: /home/kasm-default-profile/install_files
162+
executable: /bin/bash
163+
- name: Make nix-installer executable
164+
shell:
165+
cmd: chmod +x nix-installer.sh
166+
chdir: /home/kasm-default-profile/install_files
167+
executable: /bin/bash
168+
- name: Install nix using nix-installer
169+
shell:
170+
cmd: ./nix-installer.sh install --no-confirm
171+
chdir: /home/kasm-default-profile/install_files
161172
executable: /bin/bash
162173
register: output_of_nix_install
163174
- name: Display stdout of nix install

0 commit comments

Comments
 (0)