Philosophy

emanix exists because personal computing should be legible.

Most systems are opaque by accumulation. You install them, they work, and the reasons are scattered across dotfiles, service units, half-remembered apt invocations and a manual step someone performed once. When something breaks you search for an answer written about a different machine.

Nobody — including its owner — can say what the machine actually is, because the machine's current state is not written down anywhere.

1. Principles

1.1. One source of truth

The flake is the single source of truth. No hidden state, no manual steps "everyone knows", no tribal knowledge. If it is not in the configuration, it does not exist.

Every undocumented file on a running machine is a refutation of it.

1.2. Reproducible

Any emanix machine can be rebuilt from the configuration alone. The same input produces the same output: the same inputs hash to the same derivation.

Comparing derivation paths before and after a refactor answers "did this change anything?" exactly, without building anything or touching a machine.

1.3. Composable

Emanix is a core. A host is the core plus whatever the flake consuming it composes on top. The same package list produces a different derivation per host, because the modules gate on feature flags — GUI applications do not exist in a headless build.

There are no roles. A role profile is a guess about which machines want which behaviour, made by someone who has never seen the machine; the decision belongs to the flake that knows the machine.

1.4. Declarative

Declare what you want; let the system work out how. No imperative package management, no state mutation, no side effects. System state is a pure function of the configuration.

1.5. Reversible

Every rebuild produces a generation, and every generation is a rollback target.

1.6. Portable

The same workspace on a laptop, a headless server and a Windows machine under WSL. The interface travels; only the substrate changes.

2. Why NixOS

NixOS makes these principles practical: functional package management, declarative configuration and atomic rollback let you know what is on a machine, reproduce it, and undo a mistake in one command. It moves the difficulty to a configuration language with worse error messages — but configuration errors are reproducible, and accumulated state is not.

3. Why Emacs

Emacs is the intelligence interface. It is a programmable environment where reading, writing, file management, version control and agent interaction share one set of keybindings and one configuration language.

Learning one general environment is paid once; learning ten special-purpose tools is paid ten times, and again whenever one is replaced.

4. Why EWM

EWM is a Wayland compositor written in Rust on Smithay, loaded as a dynamic module inside Emacs. It removes the boundary between "editor" and "desktop": the window manager is the same process, driven from the same configuration.

Once the compositor is Emacs, there is no second configuration language and no second place for state to hide.

5. What is not claimed

emanix is one person's machine, written public-shaped. It is not a product, there is no support, and the parts that encode a particular person's taste are marked as such.

The architecture generalizes. The preferences do not.