about summary refs log tree commit diff
path: root/Taskfile.dist.yml
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2023-11-28 23:10:04 +0300
committerAzat Bahawi <azat@bahawi.net>2023-11-28 23:10:04 +0300
commit34f74229f8291156f35de943fbecfbe90c3366a9 (patch)
treee2c9e7f3897770ad849dacd947853d897b7183d7 /Taskfile.dist.yml
parent2023-11-26 (diff)
2023-11-28
Diffstat (limited to '')
-rw-r--r--Taskfile.dist.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/Taskfile.dist.yml b/Taskfile.dist.yml
new file mode 100644
index 0000000..e0e8240
--- /dev/null
+++ b/Taskfile.dist.yml
@@ -0,0 +1,16 @@
+---
+version: '3'
+
+tasks:
+  update-firefox-addons:
+    vars:
+      input: "{{ .ROOT_DIR }}/modules/nixos/firefox/addons.json"
+      output: "{{ .ROOT_DIR }}/modules/nixos/firefox/addons.nix"
+    sources:
+      - "{{ .input }}"
+    generates:
+      - "{{ .output }}"
+    cmds:
+      - nix run sourcehut:~rycee/mozilla-addons-to-nix {{ .input }} {{ .output }}
+      - nix fmt {{ .output }}
+      - nix run .#deadnix -- --edit --quiet {{ .output }}

Consider giving Nix/NixOS a try! <3