@@ -0,0 +1,5 @@
+---
+- name: Rebuild nix config
+ ansible.builtin.shell:
+ cmd: nixos-rebuild boot
+
@@ -1,4 +1,16 @@
---
+- name: Ensure nix config is up to date
+ ansible.builtin.template:
+ src: configuration.nix.j2
+ dest: /etc/nixos/configuration.nix
+ owner: root
+ group: root
+ mode: '0644'
+ notify:
+ - Rebuild nix config
+ tags:
+ - nix
- name: Copy kodi configuration files
ansible.builtin.template:
src: "{{ item }}.j2"