features
Everything below is in the tree and runs. features.md has the status of each and where its code lives. What it doesn't stop is on the threat model.
- The desktop
- Separation
- The appliance
- Time travel and backups
- Disaster recovery
- swmtool
- byol
- A plain desktop
The desktop
- It tiles. You get spectrwm's tiling, keys, and layouts, and no title bars, no dragging, no right-click menus. Windows go where they belong and stay there.
- The bar says where you are.
alice:dev:2is the username, the session, and the workspace. - The borders say it too. Each session gets its own border color, and the cursor carries a two-letter tag of the session that has the keyboard.
- Alerts tell you what to do. When something breaks, a band across the top of every screen gives a code, what happened, and what to do next. Amber means the desktop carries on. Red means you are stuck, and the band tells you the way out. scrotwmos(7) lists every code.
- Twelve tabs. MOD+F1 to MOD+F12 run the machine, because dom0 has no shell: help, top, the log, the network, USB, disks, power, backups, and the rest. tabs.md has every key.
Separation
- A session per workspace. A program runs in the session of the workspace you start it on, and its windows stay there: none moves to another session's workspace. Keys go only to the session in focus, and each session has its own clipboard. Nothing crosses.
- Containers that mean it. Each container has its own uid and namespaces, no capabilities, a seccomp filter, and cgroup limits on memory, processes, and CPU. Its root is read-only.
- VMs on our own hypervisor.
swm-vmmis a KVM monitor written for this, and no QEMU gets near a session. It runs as the session's uid, in namespaces of its own with an empty read-only root, under a seccomp filter that kills it on any call off its list. The guest boots a signed kernel, and a VM gets no USB device at all. - Real GPUs in a VM. A VM gets 3D through
vmm-gfx, which runs in a jail of its own. A second GPU can go to one VM whole, and an NVIDIA GPU runs CUDA there. gpu.md says what each GPU gets. - A share when you want one. The sessions of one world can
share one directory,
/share, on its own encrypted image, and only the sessions you put in it see it.
The appliance
- A host with nothing on it. dom0 holds three programs:
swm-wl,swm-vmm, andvmm-gfx. The build refuses a fourth. There is no shell, no init system, no udev, no seat daemon, and no login. The compositor runs as its own user under a seccomp filter that refuses every exec, and a root monitor beside it does the few things that need root and checks each request. - Worlds. One box holds up to eight, each an encrypted desktop with its own key. The username picks the world, so there is no boot menu. Root on the box can erase a world. It cannot read one.
- Updates you can back out of. An update lands in slot A, and the old release stays in slot B. If A does not boot, type B's username.
- A rescue world with the repair tools, for when you broke it anyway, and an optional decoy world that looks like any other world at the prompt.
- A signed boot. The loader checks the boot image against the release key on every boot, and a failure halts.
- Everything encrypted. Every root, home, and VM disk is encrypted under a key that only its world opens. Swap gets a new random key every boot, and that key is never stored.
- A lock you can check. MOD+Shift+Delete locks. The
lock shows your world's mark,
WORLD:and two words, made from the world's key. No program knows it, so a lock without your mark is a fake. - No network in the host. dom0 has no network card driver. The net VM takes the cards whole and runs DHCP, Wi-Fi (WPA2 and WPA3), the router, NAT, the firewall, and NTP. Each session reaches the internet, the LAN, both, or nothing.
- USB on your terms. A device plugged in after boot stays blocked until you let it in on F7, from a real keyboard.
- A program cannot press your keys. The tab actions that change anything need a real keyboard on a tab a real keyboard opened.
- TOTP codes, if you want them. The box proves itself to your phone before you type a password. Two entries go in your phone's authenticator app: the loader shows its code before it asks anything, then asks for yours.
- Unattended install. Drop a plan on the stick as
swm/plan, put the passwords beside it, and boot. Withunattended = yesit asks nothing, installs, and powers off. Pin the disk by id and the wrong box refuses the plan. Whoever holds that stick holds the passwords. How.
Time travel and backups
- A point every hour. Each hour your home changed, the box takes a point of it. It keeps every point of the last day, one a day for a week, and one a week for two years. The box has a VM freeze its disk while it takes the point.
- Go back. F11 mounts any point read-only at
/points/<hour>in your session. Mount as many as you like and copy back what you need. From the rescue world you can roll the whole home back, and the rollback is a point too, so you can undo it. - Backups that know nothing. The box copies each new point to a backup place: a USB disk, an NFS export, or an SMB share. The place gets ciphertext and sealed manifests, and the VM that writes the copies holds no key to them. Every day the box reads the newest copy back and checks it.
Disaster recovery
- Bad update. Boot slot B's username to get the release before.
- World won't open. Boot rescue. It still wants that world's password.
- Box won't boot. Boot the stick and run
update. How. - Dead ESP.
swmtool esp restorerebuilds it from its twin. - Dead or stolen box. Install a new one, then
swmtool place worldandplace restorebring your world back from the backup place. How. - Lost password. Same thing, with the 12 words. Lose both and the world is gone. Nobody gets it back.
- byol.
swmtool recoverand the phrase open a disk the TPM won't.tt backundoes a bad root.
swmtool
There are no config files to edit. A world's config is sealed on the ESP under the world's own key, and dom0 has no shell to edit it with anyway. swmtool runs from rescue or the stick. It takes the password, makes the change, seals it again, and copies it to the twin. Nothing the boot trusts is ever edited by hand. swmtool(8) has every command.
byol
- Your Linux, our desktop. It is plain Void Linux, runit and all, with an encrypted root and scrotwmos as the desktop. Workspaces belong to sessions, each a container or a VM, as on the appliance, and the ones no session takes run on the host.
- One password for the boot, the disk, the login, and the lock.
- TPM boot. The TPM opens the disk alone, or together with the password and a recovery phrase. TOTP codes go on top if you want them.
- Time travel for the whole root. The box takes an hourly point
of the system. Mount any of them, or boot one with
swmtool tt back. - Servers as VMs.
swmtool vmruns VMs of your own on Void's qemu, each a runit service as its own uid, never root. The base images are Void, Fedora 45, and OpenBSD 8.0, each checked against its release's signatures.swmtool ctdoes the same for Void containers.
A plain desktop
swm-x11is the window manager under X11. Nothing changes from the spectrwm you know.swm-wlis a Wayland compositor. Wayland users can finally trash their "desktops" and use something sane.swm-webtiles terminals in a web browser. It listens on loopback alone, with no password: run it only on a box where you trust every local user.
Standing on Void
None of this exists without Void Linux. The build host, dom0's musl root, the stick's root, every world's root, and byol are all Void, and every package comes through xbps. xbps does what it says, musl is no afterthought, and you can read runit in an afternoon. That is why a project this small builds an operating system and not a distribution.