--- # Configuring the nix installation. - name: Adding user to nix-users ansible.builtin.user: name: "{{ ansible_user }}" groups: nix-users append: true become: true - name: Adding configuration to local user ansible.builtin.file: src: "{{ dotfdir }}/nix" dest: "{{ lookup('ansible.builtin.env', 'HOME') }}/.config/nix" state: link