Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 702b8808cb | |||
| 4535cb4db5 | |||
| d93120d43e | |||
|
9418deddae
|
|||
|
fedfd9235c
|
|||
|
0eed1c5008
|
|||
|
85a295744b
|
|||
| adfcc88ef5 | |||
|
ab55d46cb4
|
|||
|
dc70f0e701
|
|||
| d7eb04e754 | |||
|
24f8e51285
|
|||
|
49cc2b51a6
|
|||
|
baa4928b0e
|
@@ -18,7 +18,7 @@ jobs:
|
|||||||
extra_nix_config: |
|
extra_nix_config: |
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
github_access_token: ${{ secrets.GH_ACCESS_TOKEN }}
|
github_access_token: ${{ secrets.GH_ACCESS_TOKEN }}
|
||||||
nix_path: nixpkgs=channel:nixos-25.05
|
nix_path: nixpkgs=channel:nixos-25.11
|
||||||
- uses: cachix/cachix-action@v16
|
- uses: cachix/cachix-action@v16
|
||||||
with:
|
with:
|
||||||
name: palkx
|
name: palkx
|
||||||
|
|||||||
@@ -12,4 +12,4 @@ jobs:
|
|||||||
release:
|
release:
|
||||||
name: Release a new version
|
name: Release a new version
|
||||||
needs: build
|
needs: build
|
||||||
uses: xaked/actions/.gitea/workflows/cog-release.yml@2.0.0
|
uses: xaked/actions/.gitea/workflows/cog-release.yml@2.0.3
|
||||||
|
|||||||
54
.gitea/workflows/update-flake-lock.yml
Normal file
54
.gitea/workflows/update-flake-lock.yml
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
name: Sync flake lock with main nix-configuration project
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: "15 3 * * *"
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update:
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
name: Sync flake lock with main nix-configuration project
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
changes: ${{ steps.checkChanges.outputs.CHANGES }}
|
||||||
|
steps:
|
||||||
|
- name: Checkout Repository
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
- name: Checkout nix-configuration repository
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
with:
|
||||||
|
repository: xaked/nix-config
|
||||||
|
path: nix-config
|
||||||
|
ref: master
|
||||||
|
token: ${{ secrets.NIX_CONFIGURATION_GITEA_CLONE_TOKEN }}
|
||||||
|
- name: Check for update and perform update
|
||||||
|
id: checkChanges
|
||||||
|
run: |
|
||||||
|
git config user.name gitea-bot
|
||||||
|
git config user.email bot@git.palkoi.net
|
||||||
|
git config --global user.email bot@git.palkoi.net
|
||||||
|
git config --global user.name gitea-bot
|
||||||
|
|
||||||
|
tmpfile="$(mktemp)"
|
||||||
|
jq -srM '.[1].nodes.nixpkgs = .[0].nodes.nixpkgs_2|.[1].nodes.nixpkgs_2 = .[0].nodes.nixpkgs_2 | .[1]' ./nix-config/flake.lock flake.lock > "$tmpfile"
|
||||||
|
cat "$tmpfile" > flake.lock
|
||||||
|
git add flake.lock
|
||||||
|
if [ -n "$(git diff --cached)" ]; then git diff --cached; echo 'CHANGES=y'>>$GITHUB_OUTPUT; else echo 'CHANGES=n'>>$GITHUB_OUTPUT; fi
|
||||||
|
- name: Commit updates
|
||||||
|
if: ${{ steps.checkChanges.outputs.CHANGES == 'y' }}
|
||||||
|
run: |
|
||||||
|
git commit --no-gpg-sign -m 'chore(flake): update flake.lock'
|
||||||
|
git push
|
||||||
|
build:
|
||||||
|
name: Build flake
|
||||||
|
if: ${{ needs.update.outputs.changes == 'y' }}
|
||||||
|
needs: update
|
||||||
|
uses: ./.gitea/workflows/build-flake.yml
|
||||||
|
release:
|
||||||
|
name: Release a new version
|
||||||
|
needs: build
|
||||||
|
uses: xaked/actions/.gitea/workflows/cog-release.yml@2.1.0
|
||||||
|
with:
|
||||||
|
ref: ${{ github.ref_name }}
|
||||||
1
cog.toml
1
cog.toml
@@ -1,2 +1,3 @@
|
|||||||
[commit_types]
|
[commit_types]
|
||||||
version = { bump_patch = true, changelog_title = "Version" }
|
version = { bump_patch = true, changelog_title = "Version" }
|
||||||
|
chore = { bump_patch = true, changelog_title = "Chore" }
|
||||||
|
|||||||
14
flake.lock
generated
14
flake.lock
generated
@@ -87,11 +87,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1766473571,
|
"lastModified": 1767634882,
|
||||||
"narHash": "sha256-5G1NDO2PulBx1RoaA6U1YoUDX0qZslpPxv+n5GX6Qto=",
|
"narHash": "sha256-2GffSfQxe3sedHzK+sTKlYo/NTIAGzbFCIsNMUPAAnk=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "76701a179d3a98b07653e2b0409847499b2a07d3",
|
"rev": "3c9db02515ef1d9b6b709fc60ba9a540957f661c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -118,15 +118,15 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1766473571,
|
"lastModified": 1767634882,
|
||||||
"narHash": "sha256-5G1NDO2PulBx1RoaA6U1YoUDX0qZslpPxv+n5GX6Qto=",
|
"narHash": "sha256-2GffSfQxe3sedHzK+sTKlYo/NTIAGzbFCIsNMUPAAnk=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "76701a179d3a98b07653e2b0409847499b2a07d3",
|
"rev": "3c9db02515ef1d9b6b709fc60ba9a540957f661c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"owner": "nixos",
|
||||||
"ref": "nixos-25.11",
|
"ref": "nixos-25.11",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
|
|||||||
Reference in New Issue
Block a user