--- # Configuring nix. - name: Adding current user to nix-users ansible.builtin.user: name: "{{ ansible_user_id }}" groups: nix-users append: true become: true - name: Create configuration directory ansible.builtin.file: path: "{{ userconfigdir }}" state: directory - name: Linking configuration ansible.builtin.file: src: "{{ dotfdir }}/nix" dest: "{{ nix_configdir }}" state: link