Nixorium 开源工具实现校园机房 NixOS 批量管理

原标题:Show HN: Nixorium – NixOS fleet management, in daily use in my school's labs
58AI 研判分

Nixorium 是一款基于 NixOS 声明式配置的机房集群管理工具,由一台控制机统一描述整间实验室的电脑、账户、软件与学生桌面,并通过局域网向所有学生机推送安装与更新,无需各机独立联网。每台机器本地运行应用,每次启动恢复干净桌面,作者称其已在校内实验室日常使用。

关联知识实体

报道正文

本文目录3 个章节

Nixorium

Nixorium manages a room of Linux PCs like one machine.

One PC in the room, the controller, keeps a single description of the lab: computers, accounts, software and the student desktop. It installs and updates every student PC over the local network, so the student PCs need no Internet of their own: installation and updates work even where Internet is available only after a login. Each PC then starts from its own disk, runs its applications locally and returns to a clean desktop at every boot.

Website · Documentation · Contributing · Sponsor · Releases

https://github.com/user-attachments/assets/956a1608-c1f2-446b-867d-5e9605bc8900

Why this exists

Managing a room of PCs by hand is slow. Machines drift apart over time, reinstalling them one by one takes days, and keeping thirty desktops identical becomes a job of its own. Configuration tools help, but they cannot guarantee that two PCs prepared a week apart end up the same.

NixOS solves this with declarative, reproducible systems, but its usual workflows assume that every machine can reach the Internet. In many schools, student PCs have no Internet at all, or only after a user signs in to the institutional network.

Nixorium bridges that gap with a local-first workflow:

  • One controller in the room builds the systems, keeps a signed package cache and starts the PCs from the network.
  • Student PCs are installed and updated entirely over the local network.
  • One private repository describes the whole lab: computers, accounts, software and the student desktop.
  • Everyday tasks run from a guided menu on the controller.

For administrators

One configuration for the whole room. On the controller, sign in as admin and open Nixorium from the dock, or run nixorium in a terminal. The guided menu groups everyday tasks into Computers, Installation, Software and Maintenance. Assistant is an optional paid add-on, offered in the administrator menu by default. It helps you prepare lab customizations in plain language and review them before saving.

The Community Edition is free and open source.

Assistant grew out of the maintainer's own lab: for customizations the menu does not offer, asking an AI had become more common than editing the configuration by hand, so it became a bounded, reviewed part of the product. It is paid because every request runs on a commercial AI model; the subscription also supports Nixorium's development, and Nixorium stays complete and MIT-licensed without it.

The Nixorium administrator menu, with Computers, Installation, Software, Maintenance and the optional Assistant area enabled

  • One description, every PC. Add software or change the student desktop once, then update one PC, a group or the whole room. Every change is reviewed before it runs.
  • No Internet needed on the clients. Install PCs from the network, beside the school's existing DHCP server, or from a USB stick. Only the controller needs Internet: it serves systems and updates from a local, signed cache. A disk is erased only after an explicit confirmation.
  • Updates when you choose. Update Nixorium and the system separately, and go back to a previous system version if an update causes trouble.
  • Guided recovery. When something is interrupted, Nixorium lists it and says what to do next. A private Git backup with encrypted recovery keys lets a new controller take over without reinstalling the PCs.
  • Your lab stays yours. Software choices, desktop defaults and local policy live in your own private repository, separate from this framework.
  • Describe a customization. With the optional Assistant subscription, ask for a change in plain language, review its files and Nix evaluation, then save it locally. Applying the controller and updating clients each require a separate review. Assistant can also inspect bounded computer diagnostics and saved configuration history after renewed consent, without changing systems or Git.

Under the hood: NixOS builds every PC from the same description, Nixorium copies and activates it, Harmonia serves the cache and Disko lays out the disks.

Administrator guide · Menu tour

For teachers

Every PC ready for the lesson. Sign in to the controller with your teacher account and open Classroom view from the dock to see the student computers together. Open Nixorium for the restricted classroom dashboard.

Classroom view on the controller, showing a grid of twelve student computers with screen previews and classroom controls

  • A clean desktop at every boot. Every student PC starts with the same GNOME desktop and applications. The last sessions (five unless you choose another number, up to 30) stay on that PC as snapshots. Computers → Recover student files copies a lost file or folder from one of them back to that student's desktop, and Snapshots in the Files sidebar shows them too.
  • Help students from your desk. See every student screen at once, open one in its own window, take control or save a screenshot of it, lock screens, show students a message, collect students' files from their desktops, share your own screen, and send a file or folder to the students' desktops. Students can tell when the classroom view is open: while it is, GNOME shows its screen-sharing indicator at the top of their screen. Live screens are shown, not recorded; a file is written only when you save a screenshot or collect files, into your own home folder on the controller. Nothing leaves the laboratory network.
  • Control the room. See which PCs are on, switch them on from the classroom view, pause or restore Internet on selected PCs, and shut them down or restart them. Teacher controls do not change the laboratory configuration.

Teacher overview · Classroom dashboard tour

(注:更多技术实现细节与完整 API 文档请查阅原项目 README)