diff --git a/roles/nix/tasks/configuration.yml b/roles/nix/tasks/configuration.yml index 2ac1763..8d8eb22 100644 --- a/roles/nix/tasks/configuration.yml +++ b/roles/nix/tasks/configuration.yml @@ -16,6 +16,14 @@ become_user: root become: true + - name: Assure configuration folder exists + ansible.builtin.file: + path: "{{ lookup('ansible.builtin.env', 'HOME') }}/.config/nix" + state: directory + owner: "{{ additional_user }}" + become: true + become_user: "{{ additional_user }}" + - name: Adding configuration to local user ansible.builtin.file: src: "{{ dotfdir }}/nix"