Skip to main content
Close Search
Nitrux — #DisruptiveByDesign — Official WebsiteNitrux — #DisruptiveByDesign — Official Website
search
Menu
  • x-twitter bluesky facebook youtube github instagram telegram mastodon threads email
  • search
  • Menu
Nitrux — #DisruptiveByDesign — Official Website
  • Nitrux Core Concepts 9
    • Distribution Philosophy
    • System Architecture
      • Immutable Architecture
      • Rootless App Model
      • Aesthetic FHS
      • Init System
      • Language Stratification
      • Workspace Environment
    • Workspace Architecture
      • Workspace Compartmentalization
      • Nitrux Workspace Session Manager
  • Getting Started 20
    • System Requirements
      • Hardware Compatibility Validation Layer
      • Minimum Requirements
      • Recommended Requirements
    • Installation Guide
      • Download the ISO
        • ISO for AMD and Intel Hardware
        • ISO for NVIDIA Hardware
      • Validate the ISO
        • ISO Integrity Validation
        • ISO Authenticity Validation
      • Flashing the ISO
        • USB Flash Preflight
        • Rufus (Windows)
        • Ventoy (Windows/Linux)
        • dd (*nix)
      • Installing Nitrux
        • Nitrux Installation Process Information
        • Using Secure Boot with Nitrux
        • Automated Partitioning Options
        • Non-automated Partitioning Options
        • Full-disk Encryption in Nitrux
        • Single-booting Nitrux
        • Dual-booting Nitrux with Windows or other Linux distributions
        • Triple-booting Nitrux, Windows, and other Linux distributions
        • Report Installation Bugs
  • Workspace and UX 10
    • Workspace Applications
      • Default Software Selection
      • Workspace Settings
    • Workspace Defaults
      • greetd + QMLGreet
      • Hyprland
      • Valenz
      • Marina
      • Vicinae
      • QMLogout
      • NudgeOSD
      • Workspace Daemons
        • Default Session Daemons
  • Software Management 4
    • Graphical Software Manager (AppFinder)
    • User Application Delivery
      • NX AppHub and AppBoxes
      • Flatpak
    • Development Environments
      • Distrobox
  • Security and Privacy 6
    • Security Features
      • System Security Features
    • Security Policies
      • Identity and Access Management
      • Kernel and Memory Hardening
      • Network Security and Privacy
      • Session Hardening
      • Bluetooth Security
  • System Performance 4
    • Filesystem Optimizations
      • XFS Features in Nitrux
      • F2FS Features in Nitrux
    • System Optimizations
      • Advanced Memory Management
      • Performance and I/O
  • System Management 5
    • System Administration
      • Nitrux Update Tool System
      • NX Overlayroot
      • Nitrux GRUB Modes
    • System Configuration
      • SB Manager
      • Kernel Boot
  • Troubleshooting 21
    • FAQ
      • Is Nitrux right for me?
      • Is Nitrux eating my RAM?
      • NVIDIA Driver Information
      • Virtualizing Nitrux
      • Support for Other Desktop Environments
      • Flatpak Information
      • Energy Saving Information
      • Virtual Consoles (TTY) Information
      • GRUB Menu Information
      • KDE Wallet Information
      • NetworkManager Information
      • Backups Information
      • General Gaming Information
      • AppImage Information
      • MauiKit UI Framework Information
    • Installation Issues
      • ISO doesn’t boot or System installs, but there's no GUI
      • Can't install due to the MBR partition limit
      • Can't install due to mounted Swap partitions
      • Failure to install due to an issue with rsync error code 11
      • Failure to install GRUB on a computer with multiple storage devices or using the MBR partition table
      • Installation is successful, but user data isn't persistent
  • Resources 2
    • Tutorials
    • Get Involved

Immutable Architecture

1 min read

134 views

Nitrux has used an immutable root filesystem since version 2.6.0 (January 2023); this change lets us provide new distribution versions with greater certainty that root modifications won’t cause conflicts. It also prevents issues caused by traditional package managers installing or upgrading packages from third-party sources we cannot control, which conflict with Nitrux’s immutable architecture and our intended system configuration. NX Overlayroot implements this with OverlayFS, a union filesystem that presents a unified view by overlaying a writable layer on a read-only base. Changes appear to persist during a session but do not alter the underlying root.

Why Immutability Matters?

  1. System integrity and certainty. The immutable root guarantees the base system remains in a known state. No package upgrade, user error, or malware can silently alter core system files. When troubleshooting, the root is never the variable—eliminating an entire class of unknowns.
  2. Reproducible updates. Immutability enables the OTA-style update model used by the Nitrux Update Tool System (NUTS).
  3. Validation of software philosophy. Software installation occurs entirely outside the immutable root, using AppBoxes (stored in user space), Flatpaks, and Distrobox containers.

Architecture Diagram

This diagram shows the separation between the immutable base, the ephemeral overlay, and persistent user data.

 

                 USER-VISIBLE MOUNT NAMESPACE
┌─────────────────────────────────────────────────────────────┐
│                                                             │
│  /  ──────────────── Merged OverlayFS view                  │
│  │                                                          │
│  ├── /home ───────── Separate persistent filesystem         │
│  │                                                          │
│  └── /var/lib ────── Separate persistent filesystem         │
│                                                             │
└─────────────────────────────────────────────────────────────┘
                │               │                │
                │               │                │
        ┌───────▼───────┐ ┌─────▼─────┐ ┌────────▼────────┐
        │  OverlayFS    │ │ NX_HOME   │ │   NX_VAR_LIB    │
        │  mounted at / │ │  F2FS     │ │      F2FS       │
        └───────┬───────┘ └───────────┘ └─────────────────┘
                │
        ┌───────┴────────┐
        │                │
┌───────▼────────┐ ┌─────▼────────────┐
│ Upper layer    │ │ Lower layer      │
│ tmpfs          │ │ NX_ROOT          │
│ Ephemeral      │ │ XFS              │
│ Discarded      │ │ Persistent       │
│ on reboot      │ │ Read-only via /  │
└────────────────┘ └──────────────────┘
                │                 │
                └────────┬────────┘
                         ▼
              RECOMMENDED STORAGE LAYOUT

                 NX_ROOT  → /
                 NX_HOME  → /home
                 NX_VAR_LIB → /var/lib
                 ESP      → /boot/efi
                 SWAP     → swap

Persistent Writable Locations

While the root filesystem is immutable during normal operation, persistent writable data remains outside the overlay:

  • /home → User home directories and personal data.
  • /var/lib → Persistent system and service state.

/var/lib stores data required by services and runtimes across reboots. NetworkManager stores connection profiles there instead of /etc; BlueZ stores paired Bluetooth devices there; Flatpak uses it for system-wide installations; and rootful Distrobox containers store their data there.

Administrative Workflow

Administrative modifications to the root require either overlayroot-chroot or temporarily disabling the overlay. overlayroot-chroot is the preferred method; disabling the overlay is intended primarily for debugging.

Information

For detailed information on NX Overlayroot, see System Management → System Administration → NX Overlayroot.

For detailed information on the Nitrux Update Tool System, see System Management → System Administration → Nitrux Update Tool System.

Updated on 15 October, 2026
Previous - Nitrux Core ConceptsDistribution PhilosophyNext - System ArchitectureRootless App Model
Close Menu
  • Documentation
  • Bug Tracker
  • Blog
    • Tutorial
    • News
    • Other
    • Blog Archive
      • News and Tutorial Archive
      • Maui Archive
      • ZNX Archive
      • VMetal Archive
      • PNX Archive
  • x-twitter
  • bluesky
  • facebook
  • youtube
  • github
  • instagram
  • telegram
  • mastodon
  • threads
  • email

© 2017-2026 Some Rights Reserved. Made with ♥ by Nitrux Latinoamericana S.C.