diff --git a/roles/kitty-user-cfg/defaults/main.yml b/roles/kitty-user-cfg/defaults/main.yml index 293920d..f80fade 100644 --- a/roles/kitty-user-cfg/defaults/main.yml +++ b/roles/kitty-user-cfg/defaults/main.yml @@ -1,4 +1,5 @@ --- additional_user: syntaxerrormmm dotfdir: "{{ lookup('ansible.builtin.env', 'HOME') }}/.dotfiles" -kitty_configdir: "{{ lookup('ansible.builtin.env', 'HOME') }}/.config/kitty" +userconfigdir: "{{ lookup('ansible.builtin.env', 'HOME') }}/.config" +kitty_configdir: "{{ userconfigdir }}/kitty" diff --git a/roles/kitty-user-cfg/tasks/main.yml b/roles/kitty-user-cfg/tasks/main.yml index 34d26e8..ad86ba6 100644 --- a/roles/kitty-user-cfg/tasks/main.yml +++ b/roles/kitty-user-cfg/tasks/main.yml @@ -3,10 +3,11 @@ - name: Create configuration directory ansible.builtin.file: - path: "{{ kitty_configdir }}" + path: "{{ userconfigdir }}" state: directory - name: Linking configuration - ansible.builtin.copy: - src: "{{ dotfdir }}/kitty/kitty.conf" - dest: "{{ kitty_configdir }}/kitty.conf" + ansible.builtin.file: + src: "{{ dotfdir }}/kitty" + dest: "{{ kitty_configdir }}" + state: link diff --git a/roles/nix-user-cfg/defaults/main.yml b/roles/nix-user-cfg/defaults/main.yml index 543b95a..254a92b 100644 --- a/roles/nix-user-cfg/defaults/main.yml +++ b/roles/nix-user-cfg/defaults/main.yml @@ -1,4 +1,5 @@ --- additional_user: syntaxerrormmm dotfdir: "{{ lookup('ansible.builtin.env', 'HOME') }}/.dotfiles" -nix_configdir: "{{ lookup('ansible.builtin.env', 'HOME') }}/.config/nix" +userconfigdir: "{{ lookup('ansible.builtin.env', 'HOME') }}/.config" +nix_configdir: "{{ userconfigdir }}/nix" diff --git a/roles/nix-user-cfg/tasks/main.yml b/roles/nix-user-cfg/tasks/main.yml index 7b9b346..5578948 100644 --- a/roles/nix-user-cfg/tasks/main.yml +++ b/roles/nix-user-cfg/tasks/main.yml @@ -3,10 +3,11 @@ - name: Create configuration directory ansible.builtin.file: - path: "{{ nix_configdir }}" + path: "{{ userconfigdir }}" state: directory - name: Linking configuration - ansible.builtin.copy: - src: "{{ dotfdir }}/nix/nix.conf" - dest: "{{ nix_configdir }}/nix.conf" + ansible.builtin.file: + src: "{{ dotfdir }}/nix" + dest: "{{ nix_configdir }}" + state: link