From d644b7d40a6b9a3d63929b224563566d485f4512 Mon Sep 17 00:00:00 2001 From: Christoffer Martinsson Date: Sat, 15 Nov 2025 10:21:30 +0100 Subject: [PATCH] Fix NixOS config path in automated release workflow Update release.yml to use correct path hosts/services/cm-dashboard.nix instead of hosts/common/cm-dashboard.nix. Also update documentation in CLAUDE.md and README.md to reflect the correct file location. --- .gitea/workflows/release.yml | 6 +++--- CLAUDE.md | 2 +- README.md | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 6526934..3ee29cb 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -113,13 +113,13 @@ jobs: NIX_HASH="sha256-$(python3 -c "import base64, binascii; print(base64.b64encode(binascii.unhexlify('$NEW_HASH')).decode())")" # Update the NixOS configuration - sed -i "s|version = \"v[^\"]*\"|version = \"$VERSION\"|" hosts/common/cm-dashboard.nix - sed -i "s|sha256 = \"sha256-[^\"]*\"|sha256 = \"$NIX_HASH\"|" hosts/common/cm-dashboard.nix + sed -i "s|version = \"v[^\"]*\"|version = \"$VERSION\"|" hosts/services/cm-dashboard.nix + sed -i "s|sha256 = \"sha256-[^\"]*\"|sha256 = \"$NIX_HASH\"|" hosts/services/cm-dashboard.nix # Commit and push changes git config user.name "Gitea Actions" git config user.email "actions@gitea.cmtec.se" - git add hosts/common/cm-dashboard.nix + git add hosts/services/cm-dashboard.nix git commit -m "Auto-update cm-dashboard to $VERSION - Update version to $VERSION with automated release diff --git a/CLAUDE.md b/CLAUDE.md index 45ea8ac..4c67aed 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -115,7 +115,7 @@ This automatically: - Uploads binaries via Gitea API ### NixOS Configuration Updates -Edit `~/projects/nixosbox/hosts/common/cm-dashboard.nix`: +Edit `~/projects/nixosbox/hosts/services/cm-dashboard.nix`: ```nix version = "v0.1.X"; diff --git a/README.md b/README.md index b49b38d..22a5863 100644 --- a/README.md +++ b/README.md @@ -329,7 +329,7 @@ This triggers automated: - Tarball upload to Gitea ### NixOS Integration -Update `~/projects/nixosbox/hosts/common/cm-dashboard.nix`: +Update `~/projects/nixosbox/hosts/services/cm-dashboard.nix`: ```nix version = "v0.1.43";