From aac49a8dec1b01909ddc4dc3f0087e170f4469e3 Mon Sep 17 00:00:00 2001
From: comp500 <comp500@users.noreply.github.com>
Date: Sun, 16 Jul 2023 23:48:38 +0100
Subject: [PATCH] Re-add flake.lock workflow from #130, with only manual
 dispatch

flake.lock needs to be updated for Go 1.19!
---
 .github/workflows/nix-lock-update.yml | 32 +++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 .github/workflows/nix-lock-update.yml

diff --git a/.github/workflows/nix-lock-update.yml b/.github/workflows/nix-lock-update.yml
new file mode 100644
index 0000000..14823b9
--- /dev/null
+++ b/.github/workflows/nix-lock-update.yml
@@ -0,0 +1,32 @@
+name: "Update flake.lock"
+on:
+  workflow_dispatch:
+
+jobs:
+  update-lock:
+    name: lock
+    runs-on: ubuntu-latest
+    steps:
+
+      - name: Checkout repo
+        uses: actions/checkout@v2
+
+      - name: Install nix
+        uses: cachix/install-nix-action@v17
+        with:
+          extra_nix_config: |
+            experimental-features = nix-command flakes
+          nix_path: nixpkgs=channel:nixos-unstable
+        env:
+          NIX_CONFIG: access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
+
+      - name: Update flake deps
+        run: nix flake update
+        env:
+          NIX_CONFIG: access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
+
+      - name: Commit
+        uses: stefanzweifel/git-auto-commit-action@v4
+        with:
+          commit_message: "chore: update flake.lock"
+          branch: master
\ No newline at end of file