Skip to content

Commit 8e20c0c

Browse files
replace nix installation w/ provizanta.nix (ansible role)
1 parent 3357c1d commit 8e20c0c

File tree

2 files changed

+4
-29
lines changed

2 files changed

+4
-29
lines changed

playbook.yaml

Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -151,35 +151,6 @@
151151
apt:
152152
name: iputils-ping
153153
update_cache: yes
154-
- name: Create /nix directory and set permissions
155-
shell:
156-
cmd: mkdir -m 0755 /nix && chown root /nix
157-
executable: /bin/bash
158-
- name: Download nix-installer # as https://zero-to-nix.com/start/install/
159-
shell:
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
172-
executable: /bin/bash
173-
register: output_of_nix_install
174-
- name: Display stdout of nix install
175-
debug:
176-
msg: "{{ output_of_nix_install.stdout }}"
177-
- name: Display stderr of nix install
178-
debug:
179-
msg: "{{ output_of_nix_install.stderr }}"
180-
- name: Get git version
181-
shell: git version | sed 's/[[:alpha:]|(|[:space:]]//g'
182-
register: installed_git_version
183154
- name: Get keychain version
184155
shell:
185156
cmd: keychain -V 2> >(grep -i keychain) 2> >(sed 's/[[:alpha:]|(|[:space:]]//g') | fgrep '*' | sed 's/[*~://]//g'
@@ -211,6 +182,9 @@
211182
debug:
212183
msg: "{{ disk_usage.stdout }}"
213184

185+
roles:
186+
- role: nix
187+
214188
-
215189
# install Python packages with pip
216190
hosts: localhost

requirements.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@
55
- webarchitect609.google_chrome # https://galaxy.ansible.com/webarchitect609/google_chrome
66
- staticdev.firefox # https://galaxy.ansible.com/staticdev/firefox
77
- gantsign.visual-studio-code # https://galaxy.ansible.com/gantsign/visual-studio-code
8+
- provizanta.nix # https://galaxy.ansible.com/ui/standalone/roles/provizanta/nix
89
...

0 commit comments

Comments
 (0)