Say when a newer NixOS release is out
router-upgrade releases asks the channel server which stable releases exist (daily timer, and on every check). The Overview and Packages pages tell a router that follows a stable release when a newer one is out, and offer the newest two releases as channels instead of a fixed list. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -488,14 +488,15 @@ func (a *app) logout(w http.ResponseWriter, r *http.Request, _ session) {
|
||||
}
|
||||
|
||||
type overviewData struct {
|
||||
Status Status
|
||||
Dashboard dashboard
|
||||
Status Status
|
||||
Dashboard dashboard
|
||||
NewRelease string // a stable NixOS release newer than the followed channel exists
|
||||
}
|
||||
|
||||
func (a *app) overview(w http.ResponseWriter, r *http.Request, sess session) {
|
||||
st := a.sys.Status()
|
||||
p := page{Title: "Overview", CSRF: sess.csrf, LoggedIn: true, Flash: r.URL.Query().Get("msg"),
|
||||
Data: overviewData{Status: st, Dashboard: a.dashboardData(r.URL.Query().Get("range"))}}
|
||||
Data: overviewData{Status: st, Dashboard: a.dashboardData(r.URL.Query().Get("range")), NewRelease: a.releaseNotice()}}
|
||||
switch {
|
||||
case st.Applying || st.ConfirmRunning:
|
||||
p.Live = 2
|
||||
|
||||
Reference in New Issue
Block a user