6 Commits

Author SHA1 Message Date
ab55d46cb4 fix: update nixos 25.05->25.11
All checks were successful
build-flake / Build flake (push) Successful in 5m7s
build-flake / Release a new version (push) Successful in 13s
Sync flake lock with main nix-configuration project / Sync flake lock with main nix-configuration project (push) Successful in 4m23s
2025-12-30 21:37:11 +02:00
dc70f0e701 ci: commit auto sync updates as fix
Some checks failed
build-flake / Release a new version (push) Has been cancelled
build-flake / Build flake (push) Has been cancelled
2025-12-30 21:35:15 +02:00
d7eb04e754 chore(flake): update flake.lock 2025-12-30 19:24:17 +00:00
24f8e51285 ci: auto sync flake.lock
All checks were successful
build-flake / Build flake (push) Successful in 8m9s
build-flake / Release a new version (push) Successful in 9s
2025-12-30 21:16:44 +02:00
49cc2b51a6 ci: add gitea token
All checks were successful
build-flake / Build flake (push) Successful in 8m13s
build-flake / Release a new version (push) Successful in 21s
2025-12-30 21:00:19 +02:00
baa4928b0e ci: auto sync flake.lock
All checks were successful
build-flake / Build flake (push) Successful in 4m39s
build-flake / Release a new version (push) Successful in 9s
2025-12-30 20:54:09 +02:00
4 changed files with 68 additions and 8 deletions

View File

@@ -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

View File

@@ -0,0 +1,59 @@
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
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: Setup sudo and jq (required for the next step)
run: apt-get update && apt-get install -y sudo jq
- name: Setup nix
uses: cachix/install-nix-action@v31
with:
extra_nix_config: |
experimental-features = nix-command flakes
github_access_token: ${{ secrets.GH_ACCESS_TOKEN }}
nix_path: nixpkgs=channel:nixos-25.11
- 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 echo 'CHANGES=y'>>$GITHUB_OUTPUT; else echo 'CHANGES=n'>>$GITHUB_OUTPUT; fi
- name: Build nix flake
if: ${{ steps.checkChanges.outputs.CHANGES == 'y' }}
run: |
nix build .
- name: Check nix flake
if: ${{ steps.checkChanges.outputs.CHANGES == 'y' }}
run: nix flake check --all-systems
- name: Commit updates
if: ${{ steps.checkChanges.outputs.CHANGES == 'y' }}
# FIX: chore must trigger release
# Temporary commiting as fix, because chore not triggering release
run: |
git commit --no-gpg-sign -m 'fix(flake): update flake.lock'
git push

View File

@@ -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
View File

@@ -87,11 +87,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1766473571, "lastModified": 1766885793,
"narHash": "sha256-5G1NDO2PulBx1RoaA6U1YoUDX0qZslpPxv+n5GX6Qto=", "narHash": "sha256-P6RVkrM9JLCW6xBjSwHfgTOQ1JwBUma5xe5LI8xAPC0=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "76701a179d3a98b07653e2b0409847499b2a07d3", "rev": "9ef261221d1e72399f2036786498d78c38185c46",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -118,15 +118,15 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1766473571, "lastModified": 1766885793,
"narHash": "sha256-5G1NDO2PulBx1RoaA6U1YoUDX0qZslpPxv+n5GX6Qto=", "narHash": "sha256-P6RVkrM9JLCW6xBjSwHfgTOQ1JwBUma5xe5LI8xAPC0=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "76701a179d3a98b07653e2b0409847499b2a07d3", "rev": "9ef261221d1e72399f2036786498d78c38185c46",
"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"