Rooms
A room is a module under modules/<platform>/room/ that turns on other modules. It sets
their enable options with lib.mkDefault (through lib.cattery.module.mkDefaultEnabled)
and adds little or no configuration of its own.
How rooms compose
lib.mkDefault gives a definition priority 1000. A plain definition has priority 100 and
wins. So a room only fills in values you have not set:
{
cattery = {
room.desktop.dev.enable = true;
# Overrides the room's mkDefault true.
services.vscode-server.enable = false;
# Not part of the room, so it is simply added.
desktop.hyprland.enable = true;
};
}Rooms turn on other rooms the same way. Enabling room.desktop.dev sets
room.desktop.general.enable = mkDefault true, which sets room.desktop.basis, which
sets room.basis. Each arrow in the diagrams below is one of these mkDefault
definitions, so enabling a room turns on everything above it. The diagrams leave out the
cattery.room. prefix, so desktop.dev stands for cattery.room.desktop.dev.
To drop a whole parent room, override its enable option directly. Its members then fall
back to their own defaults unless another enabled room also sets them.
In Home Manager, a few room members only work on Linux or only on macOS. Rooms still turn
them on everywhere. Those modules check pkgs.stdenv.hostPlatform themselves and do
nothing on the other platform, so one room works on both. The tables mark them.
NixOS
| Room | Turns on |
|---|---|
room.basis | nix, services.openssh, services.cron, cli-apps.openssh (client), cli-apps.mtr, cli-apps.nix.nix-ld, system.locale, system.time, system.network (NetworkManager), system.ulimit, and system.boot.kernel.useLatest |
room.general | room.basis and system.boot.efi (systemd-boot) |
room.container | room.basis and services.acme. Sets boot.isContainer = true and stops wpa_supplicant, which cannot start without /dev/rfkill |
room.server-mini | room.basis and services.acme. Its cloud-init and qemu-guest options turn on the matching services |
room.server | room.basis and room.server-mini, passing its own cloud-init and qemu-guest options through |
room.server.nas | room.server and the storage services below. Also sets passwordless sudo for wheel |
room.desktop.basis | room.basis, system.automount, system.fcitx5, system.network.wireless (iwd), system.peripherals (printing, sound, Bluetooth), system.fonts, desktop.addons.chromium-support, and cli-apps.security.fido2 |
room.desktop.general | room.desktop.basis and system.boot.efi |
room.desktop.dev | room.desktop.general, apps.yubikey, services.docker, services.vscode-server, and system.boot.binfmt (aarch64-linux emulation). Sets passwordless sudo for wheel |
room.desktop.game | room.desktop.general and apps.game.steam. Sets passwordless sudo for wheel |
room.desktop.wsl | room.desktop.basis and system.wsl. Sets passwordless sudo for wheel |
No NixOS room picks a desktop environment. Turn on one of desktop.plasma,
desktop.gnome, desktop.hyprland, or desktop.niri next to a desktop room.
NAS services
Each service of room.server.nas has a switch under cattery.room.server.nas.<name>.enable.
Services that listen on the network also get openFirewall = mkDefault true.
| Switch | Default | Turns on |
|---|---|---|
samba | true | services.samba |
samba-wsdd | true | services.samba-wsdd, WS-Discovery for Windows clients |
avahi | true | services.avahi (mDNS) |
nfs | true | services.nfs |
target | true | services.target (LIO iSCSI target) |
sanoid | true | services.sanoid (ZFS snapshots) |
syncoid | true | services.syncoid (ZFS replication) |
beszel | true | services.beszel. beszel.hub.enable and beszel.agent.enable pick the parts to run |
zfs | false | system.fileSystems.zfs. Needs networking.hostId |
netdata | false | services.netdata. Heavy, and overlaps with Beszel |
{
networking.hostId = "8425e349";
cattery.room.server.nas = {
enable = true;
zfs.enable = true;
target.enable = false;
};
}Home Manager
Home Manager rooms use the same names as the NixOS ones and add room.game. Here
room.server combines room.general and room.server-mini, and the desktop rooms start
from room.general instead of room.basis.
| Room | Turns on |
|---|---|
room.basis | cli-apps.dev-kit.git, cli-apps.dev-kit.nix, cli-apps.tool.gh, cli-apps.nix.home-manager, and cli-apps.nix.nix-index |
room.general | room.basis, the shell tools atuin, direnv, starship, and powershell (macOS), the cli-apps.tool modules http-utils, monitoring, network, compressor, useful (with commonAliases), tldr, and misc, plus cli-apps.file-manager.yazi, cli-apps.disk (Linux), and cli-apps.misc (Linux) |
room.container | room.basis, cli-apps.shell.starship, and cli-apps.tool.acme-sh |
room.server-mini | room.basis and cli-apps.shell.starship. Stops persisting the XDG user directories with impermanence |
room.server | room.general, room.server-mini, and cli-apps.tool.acme-sh |
room.server.nas | room.server, cli-apps.tool.useful, and cli-apps.disk |
room.game | room.basis, apps.vscode, apps.zed-editor, apps.instant-messengers, apps.game (Linux), apps.iina (macOS), cli-apps.video.visual, and cli-apps.video.youtube |
room.desktop.basis | room.general, apps.graphics (Linux), apps.useful (Linux), and desktop.xdg. Adds wl-clipboard to home.packages on Linux |
room.desktop.general | room.desktop.basis, apps.wezterm, apps.vscode, apps.zed-editor as the default editor, and apps.browser (Linux) |
room.desktop.dev | room.desktop.general and the developer tools below |
room.desktop.game | room.desktop.general, apps.instant-messengers, and apps.game (Linux) |
room.desktop.wsl | room.desktop.basis |
room.desktop.dev in Home Manager
| Area | Modules |
|---|---|
| Editors and apps | apps.code-cursor, apps.antigravity-hub, apps.antigravity-ide, apps.opencode-desktop, apps.instant-messengers, apps.thunderbird (Linux), apps.science (Linux), apps.video (Linux), apps.iina (macOS) |
| AI coding tools | cli-apps.tool.antigravity-cli, cursor-cli, github-copilot-cli, goose, kimi-code, ollama, and qwen-code |
| Cloud and operations | cli-apps.operations.cloud with every provider (Azure, DigitalOcean, GCP, Hetzner, IBM, Linode, OpenStack, Oracle, Vultr), cli-apps.operations.kubernetes, cli-apps.cloudflared, cli-apps.warp (Linux) |
| Other tools | cli-apps.database.sqlite, cli-apps.security.gnupg, cli-apps.android (macOS), cli-apps.video.visual, cli-apps.video.youtube |
Two parts are opt-in:
cattery.room.desktop.dev.allDevKit = trueturns on everycli-apps.dev-kitmodule:cpp,dive,go,java(withmavenandgradle),javascript,lua,rust, andwasm. It defaults tofalse.cattery.apps.jetbrains.enable = trueinstalls the JetBrains IDEs and Android Studio. No room turns it on.
cli-apps.tool.claude-code, codex, opencode, and pi are not part of any room
either. Enable the ones you use.
nix-darwin
The nix-darwin rooms split at room.basis. A desktop Mac goes through
room.desktop.basis. A headless Mac, such as a Mac mini in a closet, uses room.server
and never gets the desktop parts.
| Room | Turns on |
|---|---|
room.basis | nix, cli-apps.openssh (client), and system.ulimit with an open files limit of 4096 |
room.server | room.basis, services.openssh (the server), and system.power with restartAfterPowerFailure, restartAfterFreeze, and sleep.computer and sleep.harddisk set to "never" |
room.desktop.basis | room.basis, brew (Homebrew), system.sudoTouch (Touch ID for sudo), system.useful (Finder and other macOS defaults), and system.fonts |
room.desktop.dev | room.desktop.basis and cli-apps.security.fido2 |
All values are mkDefault, so a Mac mini that should still sleep its display can set
cattery.system.power.sleep.display = 10 next to room.server. See
Modules for the power, sudo-touch, and brew
options.