Skip to content
FormalOSGitHub

One system, any distro under it

Describe your machines once in code. FormalSpec installs them on the distro you choose and keeps them in sync.

Choose a distro to see how the spec changes.

Choose your setupspec.star
Distro

Current software every six months, with a signed kernel that Secure Boot and anti-cheat trust.Fixed releases, Classic packages, Signed kernel

Preset
Desktop
# This machine's spec. `fspec plan` shows what a change would do, `fspec apply` makes it so.
load("//modules/desktop.star", "modules", "system")

hosts = [
    host(
        name = "workstation",
        platform = "x86_64-linux",
        system = system("fedora", desktop = "gnome"),
        modules = modules("fedora", desktop = "gnome"),
        users = [user("kyan", uid = 1000, groups = ["wheel"])],
        protect = ["/home"],
    ),
]

Keep the distro you trust. Make every machine on it yours.

With FormalSpec, you describe each machine in Starlark, including its packages, files, services, and the distro underneath. A single lockfile pins every version, so machines on the same commit run the same software.

The installer sets up a new disk from that description. NativeDesktop apps and FormalShell make it feel like one desktop from the moment you sign in.

Browse the code on GitHub

FormalSpec

Define your machines in code and keep them identical on any Linux distro or macOS.

Tested on macOS, Fedora 44, Arch Linux, Debian 13, and Void Linux.

fspec switch --distro d [--release r]

Installs another distro beside this one.

What it manages

Files and hosts

Write, link, or seed a file, or merge your settings into a file an app also writes. Hosts are plain functions, so adding a second laptop takes one line.

load("//modules/cli.star", "cli")

def laptop(name, extra = []):
    return host(
        name = name,
        platform = "x86_64-linux",
        system = image(base = "ghcr.io/ublue-os/bazzite-nvidia:stable"),
        users = [user("kyan", uid = 1000, shell = "fish")],
        modules = [cli()] + extra,
    )

hosts = [laptop("framework"), laptop("thinkpad")]

Services

Describe a service once, and FormalSpec generates it for each init system.

  • systemd
  • runit
  • OpenRC
  • dinit
  • s6
  • launchd

System

Use a bootc image on Fedora Atomic, Bazzite, and similar distros, or the distro's own package manager everywhere else.

# change the base image, then apply
system = image(base = "ghcr.io/ublue-os/bazzite-nvidia:stable")

Cleanup

Delete a line to remove a package along with its services, files, and app data. Changed your mind? Roll back.

fspec rollback
fspec gc --older-than 14d

Read the FormalSpec README

The installer

Choose a distro and a preset, then start up a machine that FormalSpec manages from day one. Or point it at your spec repo to restore your machines.

15 distros, from Fedora and openSUSE to Arch, Void, and AerynOS.

Download the ISO

For x86_64 PCs, about 1.2 GB. Starts from USB with Secure Boot turned on. SHA256SUMS, all versions

  FormalSpec    Language · Disk · System · Preset · Account · Review · Install
  ────────────────────────────────────────────────────────────────────────────

  Choose a system

    Fedora              fixed    systemd  signed kernel    classic
    Bazzite             fixed    systemd  signed kernel    image
  ▌ Fedora Atomic       fixed    systemd  signed kernel    image
    Aurora              fixed    systemd  signed kernel    image
    Arch Linux          rolling  systemd  unsigned kernel  classic
    CachyOS             rolling  systemd  unsigned kernel  classic

  Fedora Atomic
  Fedora as an image: updates land whole and the previous one stays in the
  boot menu.

  fixed            New versions arrive in scheduled releases you upgrade to.
  systemd          Services start with systemd, as on most distros.
  signed kernel    Boots with Secure Boot on, and anti-cheat that checks
                   kernel signatures trusts it.
  image            The system is a bootc image: updates apply whole, and the
                   previous image stays bootable.
  based on Fedora  Uses Fedora's packages, with its own changes on top.
  ↑↓ Move  Enter Continue  Esc Back  ? Keys  s Spec

Apps that feel native

Describe a window once, and each platform draws it with its own controls: AppKit on macOS, and GPUI on Linux, Windows, and the web.

Platform for the screenshots

Read the NativeDesktop docs

FormalShell

A desktop shell for Hyprland, written in Rust. A single process draws the bar, launcher, panels, notifications, lock screen, greeter, and screensaver, and every color comes from your wallpaper.

Works with Hyprland 0.56 and later. It's coming to the installer soon.

Follow FormalShell on GitHub

Smaller tools

meshtop showing three hosts, then the agents view.

By FormalSnake

  • meshtopmacOS and Linux, MIT

    Live resource usage, connections and coding agents across all your machines, in one terminal.

  • nothingctlLinux, 22 models

    Battery, noise control and EQ for Nothing and CMF headphones and earbuds, from the Linux command line.

Contributed to

  • KopuzRust and Dioxus

    A lightweight player for your local music collection, built by the Kopuz community.