Skip to content

flake: add rev to /etc/os-release#22

Open
mehbark wants to merge 1 commit into
mainfrom
build-info
Open

flake: add rev to /etc/os-release#22
mehbark wants to merge 1 commit into
mainfrom
build-info

Conversation

@mehbark

@mehbark mehbark commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

VARIANT will be the git SHA thing, suffixed by -dirty if it's dirty. This lets us (non-securely) identify what a host is actually running and whether it was built from a dirty commit (bad). VARIANT is the easiest os-release variable to stuff crap into without redoing the whole file.

This actually uses a flake thing! Go flakes!

Tested on celestia mehbark/homelab@3d8dfaa

`VARIANT` will be the git SHA thing, suffixed by `-dirty` if it's dirty.
This lets us (non-securely) identify what a host is actually running and
whether it was built from a dirty commit (bad). `VARIANT` is the easiest
`os-release` variable to stuff crap into without redoing the whole file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant