13 lines
377 B
YAML
13 lines
377 B
YAML
- name: Install Nix (multi-user mode)
|
|
ansible.builtin.shell: |
|
|
if [ ! -x /nix/var/nix/profiles/default/bin/nix ]; then
|
|
curl -L https://nixos.org/nix/install | bash -s -- --daemon
|
|
fi
|
|
args:
|
|
creates: /nix
|
|
|
|
- name: Enable flakes in nix config
|
|
ansible.builtin.copy:
|
|
dest: /etc/nix/nix.conf
|
|
content: |
|
|
experimental-features = nix-command flakes
|