2024-10-01 00:51:46 +02:00
|
|
|
---
|
|
|
|
# Configuring the nix installation.
|
|
|
|
|
2024-10-01 09:17:39 +02:00
|
|
|
- name: Adding user to nix-users
|
2024-10-01 00:51:46 +02:00
|
|
|
ansible.builtin.user:
|
2024-10-01 09:17:39 +02:00
|
|
|
name: "{{ ansible_user }}"
|
2024-10-01 00:51:46 +02:00
|
|
|
groups: nix-users
|
|
|
|
append: true
|
|
|
|
become: true
|
|
|
|
|
|
|
|
- name: Adding configuration to local user
|
|
|
|
ansible.builtin.file:
|
|
|
|
src: "{{ dotfdir }}/nix"
|
2024-10-01 09:17:39 +02:00
|
|
|
dest: "{{ lookup('ansible.builtin.env', 'HOME') }}/.config/nix"
|
2024-10-01 00:51:46 +02:00
|
|
|
state: link
|