2024-12-26 00:14:48 +01:00
|
|
|
---
|
|
|
|
# Configuring nix.
|
|
|
|
|
2024-12-26 00:39:10 +01:00
|
|
|
- name: Adding current user to nix-users
|
|
|
|
ansible.builtin.user:
|
|
|
|
name: "{{ ansible_user_id }}"
|
|
|
|
groups: nix-users
|
|
|
|
append: true
|
|
|
|
become: true
|
|
|
|
|
2024-12-26 00:14:48 +01:00
|
|
|
- name: Create configuration directory
|
|
|
|
ansible.builtin.file:
|
2024-12-26 00:23:39 +01:00
|
|
|
path: "{{ userconfigdir }}"
|
2024-12-26 00:14:48 +01:00
|
|
|
state: directory
|
|
|
|
|
|
|
|
- name: Linking configuration
|
2024-12-26 00:23:39 +01:00
|
|
|
ansible.builtin.file:
|
|
|
|
src: "{{ dotfdir }}/nix"
|
|
|
|
dest: "{{ nix_configdir }}"
|
|
|
|
state: link
|