Skip to content
LogoLogo

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

basisgeneralcontainerserver-miniserverserver.nasdesktop.basisdesktop.generaldesktop.devdesktop.gamedesktop.wsl
RoomTurns on
room.basisnix, 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.generalroom.basis and system.boot.efi (systemd-boot)
room.containerroom.basis and services.acme. Sets boot.isContainer = true and stops wpa_supplicant, which cannot start without /dev/rfkill
room.server-miniroom.basis and services.acme. Its cloud-init and qemu-guest options turn on the matching services
room.serverroom.basis and room.server-mini, passing its own cloud-init and qemu-guest options through
room.server.nasroom.server and the storage services below. Also sets passwordless sudo for wheel
room.desktop.basisroom.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.generalroom.desktop.basis and system.boot.efi
room.desktop.devroom.desktop.general, apps.yubikey, services.docker, services.vscode-server, and system.boot.binfmt (aarch64-linux emulation). Sets passwordless sudo for wheel
room.desktop.gameroom.desktop.general and apps.game.steam. Sets passwordless sudo for wheel
room.desktop.wslroom.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.

SwitchDefaultTurns on
sambatrueservices.samba
samba-wsddtrueservices.samba-wsdd, WS-Discovery for Windows clients
avahitrueservices.avahi (mDNS)
nfstrueservices.nfs
targettrueservices.target (LIO iSCSI target)
sanoidtrueservices.sanoid (ZFS snapshots)
syncoidtrueservices.syncoid (ZFS replication)
beszeltrueservices.beszel. beszel.hub.enable and beszel.agent.enable pick the parts to run
zfsfalsesystem.fileSystems.zfs. Needs networking.hostId
netdatafalseservices.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.

basisgeneralcontainerserver-minigameserverserver.nasdesktop.basisdesktop.generaldesktop.devdesktop.gamedesktop.wsl
RoomTurns on
room.basiscli-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.generalroom.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.containerroom.basis, cli-apps.shell.starship, and cli-apps.tool.acme-sh
room.server-miniroom.basis and cli-apps.shell.starship. Stops persisting the XDG user directories with impermanence
room.serverroom.general, room.server-mini, and cli-apps.tool.acme-sh
room.server.nasroom.server, cli-apps.tool.useful, and cli-apps.disk
room.gameroom.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.basisroom.general, apps.graphics (Linux), apps.useful (Linux), and desktop.xdg. Adds wl-clipboard to home.packages on Linux
room.desktop.generalroom.desktop.basis, apps.wezterm, apps.vscode, apps.zed-editor as the default editor, and apps.browser (Linux)
room.desktop.devroom.desktop.general and the developer tools below
room.desktop.gameroom.desktop.general, apps.instant-messengers, and apps.game (Linux)
room.desktop.wslroom.desktop.basis

room.desktop.dev in Home Manager

AreaModules
Editors and appsapps.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 toolscli-apps.tool.antigravity-cli, cursor-cli, github-copilot-cli, goose, kimi-code, ollama, and qwen-code
Cloud and operationscli-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 toolscli-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 = true turns on every cli-apps.dev-kit module: cpp, dive, go, java (with maven and gradle), javascript, lua, rust, and wasm. It defaults to false.
  • cattery.apps.jetbrains.enable = true installs 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.

basisserverdesktop.basisdesktop.dev
RoomTurns on
room.basisnix, cli-apps.openssh (client), and system.ulimit with an open files limit of 4096
room.serverroom.basis, services.openssh (the server), and system.power with restartAfterPowerFailure, restartAfterFreeze, and sleep.computer and sleep.harddisk set to "never"
room.desktop.basisroom.basis, brew (Homebrew), system.sudoTouch (Touch ID for sudo), system.useful (Finder and other macOS defaults), and system.fonts
room.desktop.devroom.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.