Settings to options
Every field on the settings panes writes one option in the box's Nix
description (losos.*). Use this table when you want something the panes
do not offer. Every option in it is on Settings → Advanced, which checks
the value before Apply. From a terminal, the losos client changes the same
options through the box, with the same checks:
losos options get cache.local.maxSize
losos options set cache.local.maxSize 16g
losos options unset cache.local.maxSize # back to the default
Nobody edits a Nix file for any of this. Administration documents the options in full.
On the panes
| Pane | Field | Option | Default |
|---|---|---|---|
| Network | Name | losos.hostName | losos |
| Network | Encrypt the connection | losos.tls.enable | on |
| Network | Reachable from outside | losos.proxy.enable | off |
| Network | Edge address | losos.proxy.registrarUrl | the LosOS edge |
| Apps | LosOS Git | losos.git.enable | on |
| Apps | LosOS Cloud, days in the trash | losos.cloud.trashDays | 30 |
| Apps | LosOS Git, settings for everyone | losos.git.site.* | as LosOS Git ships |
| Storage | Use the reserve | grows the disk into the reserve, which is losos.storage.fillPercent | 90 % |
| Mesh | Join the mesh | losos.cluster.enable | off |
| Mesh | Share my spare time | losos.cluster.shareCompute | off |
| Mesh | Hours | losos.cluster.computeWindow.{start,end} | unset |
| Market | Share my disk | losos.sharingMyStorage | off |
| Hardware | Graphics | losos.gpu.enable | off |
| Security | AppArmor | losos.hardening.apparmor | off |
| Security | Hardened memory allocator | losos.hardening.malloc | off |
| Security | No SMT | losos.hardening.nosmt | off |
| Security | USBGuard | losos.hardening.usbguard | off |
Not on the panes
| What | Option | Default |
|---|---|---|
| Where updates come from | losos.configRepo.upstream.url, .branch | https://github.com/dasmatus/losos.git, main |
| Whether the box updates at all | losos.configRepo.upstream.enable | on |
| What the nightly rebuild builds | losos.upgradeFlakeUri | git+file:///etc/nixos#install, the box's own repository |
| The hardening baseline | losos.hardening.enable | on |
| The disk unlock mode | losos.tpm.enable | what the installer found |
| UEFI or BIOS | losos.bios | what the installer found |
| The disks | losos.targetDrives | what the installer found |
| Certificate lifetime | losos.tls.validityDays | 730 |
| Idle threshold for lending CPU | losos.cluster.idleLoadThreshold | 0.25 per core |
| The binary cache | losos.cache.substituters | http://127.0.0.1:8787 (GHCR-backed on-demand proxy) |
| Size of the local copy of the caches | losos.cache.local.maxSize | 8g |
Who may read /setup/state.json from a web page | losos.setup.finderOrigins | the LosOS edge's find page |

Rules the panes enforce
- A name is letters, digits and hyphens, starting and ending with a letter or a digit, up to 63 characters.
- A port is between 1024 and 65535.
- The hours are two 24-hour times,
HH:MM, in the box's own time zone. The window may cross midnight.