about summary refs log tree commit diff
path: root/Taskfile.dist.yml
blob: e0e82408a0a40f095e76deec0520d2d23e1b7515 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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