Tag releases, and name the version on the Overview
nix run .#release ends by creating the annotated tag vX.Y.Z on the released commit (the tags routers that update from the repository look for); it refuses a HEAD of another version and does nothing outside a checkout. The System card on the Overview says which nixos-router and NixOS run. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -319,6 +319,8 @@ type dashboard struct {
|
||||
Events []Event
|
||||
Charts []Chart
|
||||
Prefs Prefs
|
||||
Version string // the installed release of nixos-router
|
||||
NixOS string // the NixOS it runs on
|
||||
}
|
||||
|
||||
func (a *app) dashboardData(rangeName string) dashboard {
|
||||
@@ -326,7 +328,8 @@ func (a *app) dashboardData(rangeName string) dashboard {
|
||||
now := time.Now()
|
||||
s, _ := loadSettings(a.sys.settingsPath())
|
||||
f := s.form()
|
||||
d := dashboard{Range: rg.Name, Interval: 5, Snap: a.metrics.Snapshot(), Prefs: a.sys.loadPrefs()}
|
||||
d := dashboard{Range: rg.Name, Interval: 5, Snap: a.metrics.Snapshot(), Prefs: a.sys.loadPrefs(),
|
||||
Version: a.sys.installedRelease().Version, NixOS: a.sys.runningVersion()}
|
||||
// Newest first, the last few.
|
||||
ev := d.Snap.Uplink.Events
|
||||
d.Events = make([]Event, 0, 10)
|
||||
|
||||
Reference in New Issue
Block a user