Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

#22
Open
mehbark wants to merge 1 commit into
mainvtluug/construct:mainfrom
build-infovtluug/construct:build-infoCopy head branch name to clipboard
Open

flake: add rev to /etc/os-release#22
mehbark wants to merge 1 commit into
mainvtluug/construct:mainfrom
build-infovtluug/construct:build-infoCopy head branch name to clipboard

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.