fix: use absolute path for nixos-version executable

Use /run/current-system/sw/bin/nixos-version instead of relying on
PATH, since the systemd service may not have the system binaries in
its PATH.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-07 01:02:02 +01:00
parent 04eba77ac0
commit cf0ce85899
3 changed files with 7 additions and 5 deletions

View File

@@ -15,7 +15,7 @@ import (
"github.com/prometheus/client_golang/prometheus/promhttp"
)
const version = "0.2.2"
const version = "0.2.3"
func main() {
cfg, err := config.Parse()