dotfiles/roles/nix-user-cfg/tasks/main.yml

21 lines
426 B
YAML
Raw Normal View History

---
# 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