On this page
Edgeless LosOS
An edgeless box runs LosOS with no edge of any kind: no tunnel to an edge, no edge registrar, no mesh cluster whose server is the edge, and no edge Tang server holding the disk key. It is the fallback for a mesh that has to work before the edge does. Everything the box does on its own keeps working, and boxes on the same network still find and talk to each other.
What works, and what does not
| Edgeless box | |
|---|---|
| Your files, apps, LosOS Cloud, LosOS Git, chat and calls on the LAN | works |
| Sharing files and editing together with people on other boxes of your network | works, over <name>.local |
| Unlocking the disk at boot | works: TPM2, TPM2 and a Tang server of your own, or the keyfile |
| Publishing the box on the internet through an edge (the tunnel) | not available |
| Pooled storage and compute on the mesh cluster (Longhorn, the Market) | not available: its server is the edge |
Sealing the disk to an edge's Tang server (--tang-edge) | refused |
How boxes find each other without an edge
Each box publishes its name, <hostName>.local, and the service
_losos._tcp over mDNS on every network interface it has. On an edgeless box
mDNS is always on, so a box on the same network can always be found by name.
Boxes reach each other at https://<name>.local/mesh/v1/link. Each box has
its own key: the first time two boxes talk, each remembers the other's key,
and from then on refuses a box that comes with a different key under the same
name. That is the same link LosOS Cloud uses with an edge, so sharing files
and editing together work the same way. On an edgeless box it is on by
default (losos.cloud.mesh.enable).
The switch
One option turns the edge off: losos.edgeless. It is off by default. On,
it holds off everything only an edge can serve, whatever the other settings
say: losos.proxy.enable, losos.cluster.enable,
losos.cluster.shareCompute, losos.sharingMyStorage,
losos.sharingLocally and losos.inference.lend.enable. A configuration
that seals the disk to an edge's Tang server is refused when it is
evaluated, not at the first boot that cannot reach the edge.
lososd is told with LOSOS_EDGELESS=1. It then probes no registrar and
searches the network for no edge, GET /api/edge says edgeless: true,
and turning on a setting only an edge can serve is refused with a sentence
saying why.
Building it
Two flake outputs:
nix build .#nixosConfigurations.iso-edgeless.config.system.build.isoImage
nix build .#nixosConfigurations.install-edgeless.config.system.build.toplevel
The first is the edgeless installer stick, labelled LOSOS_EDGELESS. Its
install runs with --edgeless, so the box it installs carries
losos.edgeless = true; in modules/install-target.nix, and every later
rebuild of the box keeps it. You can also add --edgeless to
losos-install on any installer stick yourself. It cannot be combined with
--tang-edge.
The second is the box itself, for checking a configuration or building a
demo. A box's own rebuilds go through #install; what makes it edgeless is
the line in install-target.nix.
Checking it
nix build .#checks.x86_64-linux.losos-edgeless-eval evaluates both
edgeless outputs and asserts that nothing an edge serves is on, that the
box-to-box link and mDNS are on, that the stock box is untouched, and that an
edge Tang key is refused.