Installing NixOS
Initial Installation Instructions
Installing NixOS 26.05: Complete Novice Guide
These instructions cover the safest beginner installation:
-
A normal 64-bit Intel or AMD desktop/laptop
-
UEFI firmware
-
One internal drive
-
A clean installation that erases the selected drive
-
KDE Plasma as the desktop
-
Installation USB created from Kubuntu
The current stable release is NixOS 26.05 “Yarara”, released May 30, 2026 and supported through December 31, 2026. The official graphical installer is recommended for desktop users. (nixos.org)
Critical warning: The “Erase disk” option permanently removes Kubuntu, Windows, personal files, and every partition on the selected drive. Do not follow that partitioning step for dual boot.
Part 1: Understand what is different about NixOS
NixOS is not administered like Kubuntu, Debian, or Fedora.
You normally do not use:
sudo apt install package-nameInstead, much of the operating system is described in:
/etc/nixos/configuration.nixAfter changing that file, you apply the configuration with:
sudo nixos-rebuild switchNixOS preserves earlier system configurations as “generations,” allowing you to boot or switch back to an earlier working configuration. (nixos.org)
This rollback feature protects system configuration and installed software. It does not replace backups of your documents, photos, email, or other personal files.
Part 2: Prepare before installing
Step 1: Back up your files
Copy everything important to storage that will not be connected during installation:
-
Documents
-
Pictures and videos
-
Downloads
-
Browser bookmarks and passwords
-
Email archives
-
SSH keys
-
Capacities, Obsidian, or other local data
-
Syncthing configuration
-
pCloud files that are not fully synchronized
-
Any files stored outside your home directory
Open several files directly from the backup drive to confirm that the backup actually works.
Do not rely only on a synchronization service. A deletion can sometimes synchronize along with everything else.
Step 2: Identify the internal drive
While still running Kubuntu, open Konsole and run:
lsblk -o NAME,SIZE,MODEL,FSTYPE,MOUNTPOINTSRecord the model and capacity of the drive on which you plan to install NixOS.
Examples:
nvme0n1 1.0T Samsung SSD 990
sda 500G Crucial MX500The entire device is normally named something like:
/dev/nvme0n1or:
/dev/sdaA numbered item such as /dev/nvme0n1p2 or /dev/sda2 is a partition, not the entire drive.
Step 3: Disconnect unnecessary drives
Shut down the computer and disconnect:
-
External backup drives
-
Extra USB hard drives
-
SD cards
-
USB thumb drives other than the NixOS installer
-
Any internal drive that can easily be disconnected and must not be altered
This greatly reduces the risk of selecting the wrong drive.
Step 4: Prepare the computer
For a laptop:
-
Connect the power adapter.
-
Use Ethernet if available.
-
Make sure the battery is charged.
-
Record the Wi-Fi password.
For an NVIDIA laptop with both Intel/AMD integrated graphics and NVIDIA graphics, expect additional configuration after installation. Hybrid NVIDIA systems require PRIME configuration and should not be configured by blindly copying a generic desktop NVIDIA example. (wiki.nixos.org)
Part 3: Download NixOS
Step 5: Download the graphical ISO
Use the official NixOS download page and select:
Graphical ISO image → 64-bit Intel/AMD
Do not choose the Minimal ISO. The Minimal ISO is intended for command-line installation, while the Graphical ISO includes the live desktop and graphical installer. (nixos.org)
The filename will resemble:
nixos-graphical-26.05.xxxx.xxxxxxxxxxxx-x86_64-linux.isoThe exact numbers may change as the stable installation image is refreshed.
Step 6: Download the SHA-256 file
On the same official download page, select the SHA-256 link beside the graphical Intel/AMD download.
Place both files in your Downloads directory:
nixos-graphical-....iso
nixos-graphical-....iso.sha256The official download page publishes a matching SHA-256 value for the graphical ISO. (channels.nixos.org)
Step 7: Verify the ISO
Open Konsole and run:
cd ~/Downloads
ls nixos-graphical-*.iso*Confirm that both the ISO and SHA-256 file appear.
Then run:
sha256sum -c *.iso.sha256A successful result should end with:
OKExample:
nixos-graphical-26.05.xxxx.xxxxxxxxxxxx-x86_64-linux.iso: OKDo not use the ISO if the result says:
FAILEDDelete both downloads and download them again from the official NixOS page.
Part 4: Create the installation USB
Use an empty USB drive large enough to hold the downloaded image. Everything already on the USB will be erased.
Step 8: Install KDE ISO Image Writer
In Kubuntu:
-
Open Discover.
-
Search for ISO Image Writer.
-
Install it.
-
Close Discover.
ISO Image Writer is KDE’s application for writing ISO images to USB disks. (KDE Applications)
Alternatively, the NixOS manual recommends graphical tools such as Etcher or USBImager. (nixos.org)
Step 9: Write the ISO
-
Insert the empty USB drive.
-
Open the Application Launcher.
-
Search for ISO Image Writer.
-
Open it.
-
Select the downloaded NixOS
.isofile. -
Select the correct USB drive.
-
Recheck the USB drive’s model and capacity.
-
Select Write.
-
Enter your Kubuntu password if requested.
-
Wait until the writing operation finishes.
-
Eject the USB safely.
Do not copy the ISO onto the USB as an ordinary file. The image must be written directly to the entire USB device to make it bootable. (wiki.nixos.org)
Part 5: Boot the NixOS USB
Step 10: Open the computer’s boot menu
-
Shut down the computer completely.
-
Insert the NixOS USB.
-
Turn on the computer.
-
Immediately press the boot-menu key repeatedly.
Common keys include:
-
F12 -
F9 -
F10 -
F11 -
Esc -
Enter -
Delete
The exact key depends on the manufacturer and model. (nixos.org)
Step 11: Choose the UEFI USB entry
The boot menu may show two entries for the same USB, for example:
UEFI: Kingston DataTraveler
Kingston DataTravelerChoose the entry beginning with:
UEFI:The official manual recommends UEFI when the computer supports it. (nixos.org)
Step 12: Deal with Secure Boot if necessary
If the computer reports an invalid signature, security violation, or simply refuses to boot the USB:
-
Restart into BIOS/UEFI settings.
-
Find Secure Boot under a section such as:
-
Boot
-
Security
-
Authentication
-
Advanced
-
-
Disable Secure Boot.
-
Save the settings.
-
Restart and select the UEFI USB again.
The standard NixOS installer commonly requires Secure Boot to be disabled. Secure Boot can be configured later using advanced NixOS solutions, but that is not part of a novice installation. (nixos.org)
Do not enable Legacy Boot or CSM unless the computer is too old to support UEFI.
Part 6: Test the live environment
Step 13: Start the graphical environment
At the NixOS boot menu:
-
Leave the default boot entry selected.
-
Press
Enter, or allow it to start automatically. -
Choose the Plasma live environment if a desktop choice appears.
-
Wait for the desktop to load.
The live desktop you choose does not determine the desktop installed on the computer; the installer asks about that separately. (nixos.org)
Step 14: Connect to the internet
In Plasma:
-
Select the network icon near the lower-right corner.
-
Select your Wi-Fi network.
-
Enter the Wi-Fi password.
-
Open Firefox and confirm that a website loads.
Internet access is needed because the installer may download packages and system components. (nixos.org)
Step 15: Test essential hardware
Before installing, check:
-
Keyboard
-
Touchpad or mouse
-
Wi-Fi
-
Ethernet
-
Display brightness
-
Speakers
-
Headphones
-
Bluetooth
-
Webcam
-
External monitor, if important
-
Sleep and wake, if practical
A working live environment is a good indication that the basic hardware is supported, although it does not guarantee that every feature will work perfectly after installation.
Part 7: Run the graphical installer
Step 16: Open the installer
The graphical installer may open automatically.
Otherwise, double-click the desktop icon named something like:
Install Systemor:
Install NixOSThe official NixOS manual recommends the graphical installer for desktop users. (nixos.org)
Step 17: Welcome and language
Choose the language for the installer and installed system.
For easier troubleshooting, consider:
American EnglishMost NixOS error messages, documentation, and support discussions are in English. The manual specifically notes that American English can make error searching and reporting easier. (nixos.org)
Select Next.
Step 18: Location and time zone
Select:
Region: America
Zone: Mexico_CityOr click central Mexico on the map.
Confirm that the displayed local time is correct.
Select Next.
The location selection configures the system time zone. (nixos.org)
Step 19: Keyboard layout
Choose the keyboard layout that matches the physical keyboard.
Common possibilities:
English (US)
Spanish (Latin American)Use the test box and type:
@ / ? ñ á é í ó úConfirm that important keys appear where expected.
Select Next.
Step 20: Create the user account
Enter:
-
Your full/display name
-
A lowercase login name
-
A computer name
-
A strong password
Example:
Full name: Benjamin Stewart
Login name: ben
Computer name: nixos-homeRecommendations:
-
Use only lowercase letters for the login name.
-
Avoid spaces in the login and computer names.
-
Do not enable automatic login on a laptop.
-
Record the password securely.
-
Do not reuse the disk-encryption password unless you deliberately want them to be identical.
The installer uses this page to create the normal user account and password. (nixos.org)
Step 21: Choose KDE Plasma
Select:
PlasmaPlasma will feel most familiar to a Kubuntu user.
GNOME and Plasma are both popular and well-tested choices on NixOS. (nixos.org)
Do not choose No desktop for this installation.
Step 22: Allow unfree software
Enable:
Allow unfree softwareThis permits packages whose licensing does not satisfy the Nixpkgs free-software criteria. It can be necessary for some proprietary drivers and applications.
This setting permits such software; it does not necessarily install every required proprietary driver automatically. NixOS exposes the same setting as:
nixpkgs.config.allowUnfree = true;(nixos.org)
Part 8: Partition the drive
Step 23: Confirm that the installer says UEFI
Look near the top-left of the partitioning page.
It should indicate:
UEFIIf it says BIOS and the computer supports UEFI:
-
Cancel the installation.
-
Restart.
-
Reopen the boot menu.
-
Choose the USB entry beginning with
UEFI:.
The NixOS installer specifically warns users to reboot in the correct mode if a UEFI-capable computer was booted as BIOS. (nixos.org)
Step 24: Select the correct internal drive
At the top of the partitioning screen, identify the drive using:
-
Manufacturer
-
Model
-
Capacity
Compare it with the information recorded earlier using lsblk.
Do not proceed merely because the first drive is selected.
Step 25: Choose Erase disk
For the clean-install path covered by this guide, select:
Erase diskThis deletes all partitions and data on the selected drive. The official manual describes this as the easiest partitioning option and explicitly warns users to verify the selected disk. (nixos.org)
Step 26: Choose swap
In the swap dropdown, select:
Swap with hibernationThis is the beginner option recommended in the graphical installation instructions. (nixos.org)
Step 27: Decide whether to encrypt the drive
For a laptop, enabling full-disk encryption is strongly advisable.
Select the LUKS encryption option and enter a strong passphrase.
Remember:
-
You must enter this passphrase when the computer boots.
-
It cannot be recovered if forgotten.
-
Write down a recovery copy and store it securely.
-
Encryption protects data when the computer is powered off.
-
It does not replace backups.
The installer supports whole-disk LUKS encryption from the partitioning page. (nixos.org)
Step 28: Choose a filesystem if asked
For the simplest beginner setup, choose:
ext4Accept the installer’s default partition layout unless you have a specific reason to customize it.
Step 29: Review the summary
Read every item carefully.
Confirm:
-
Correct language
-
Correct time zone
-
Correct keyboard
-
Correct username
-
Plasma selected
-
Correct internal drive
-
Erase disk selected
-
Encryption status correct
-
Boot mode is UEFI
Pay particular attention to the drive model and size.
Step 30: Install
Select:
InstallConfirm the destructive disk operation when asked.
Do not:
-
Shut down the computer
-
Remove the USB
-
Close the installer
-
Disconnect power
-
Force a restart
The installer will partition the drive, install the operating system, configure the bootloader, create the account, and install the selected desktop. (nixos.org)
Part 9: Complete the installation
Step 31: Restart
When the installer reports completion:
-
Select Restart now.
-
Wait for the prompt to remove the installation medium.
-
Remove the NixOS USB.
-
Press
Enterif instructed. -
Allow the computer to restart.
The installed NixOS boot menu should appear. (nixos.org)
Step 32: Unlock the encrypted disk
If encryption was enabled, enter the disk-encryption passphrase.
This happens before the graphical login screen.
Step 33: Log in
At the Plasma login screen:
-
Select your account.
-
Enter the user password.
-
Wait for the Plasma desktop.
Part 10: Perform the first update
Step 34: Open Konsole
Open the Application Launcher and search for:
KonsoleStep 35: Confirm the installed version
Run:
nixos-versionIt should begin with:
26.05Step 36: Update the system
Run:
sudo nixos-rebuild switch --upgradeEnter your user password.
This updates the NixOS channel and rebuilds the system using the latest packages available in the selected stable release. (nixos.org)
When it completes successfully, restart:
systemctl rebootPart 11: Back up the initial NixOS configuration
After logging in again, open Konsole and run:
sudo cp -a /etc/nixos "/etc/nixos.backup-$(date +%F-%H%M)"Verify the backup:
sudo ls -ld /etc/nixos*The important files are usually:
/etc/nixos/configuration.nix
/etc/nixos/hardware-configuration.nixNormally:
-
Edit
configuration.nix. -
Do not manually edit
hardware-configuration.nixunless you know precisely why.
The hardware file is generated from the detected disk and hardware configuration and may be overwritten if the configuration is regenerated. (nixos.org)
Part 12: Learn the safe NixOS editing workflow
Step 37: Open the configuration file
Run:
sudo nano /etc/nixos/configuration.nixUseful Nano shortcuts:
Ctrl+W Search
Ctrl+O Save
Enter Confirm filename
Ctrl+X ExitNix configuration rules to remember:
-
Most lines end with
; -
Lists use square brackets:
[ ] -
Attribute sets use braces:
{ } -
Comments begin with
# -
Text values use quotation marks
-
Do not delete the final closing brace
Step 38: Test before making a configuration permanent
After editing, first run:
sudo nixos-rebuild testThis activates the configuration temporarily without making it the default boot generation.
If it works correctly, run:
sudo nixos-rebuild switchThe test operation allows a reboot to return to the previous default, while switch makes the new configuration the default. (nixos.org)
Part 13: Add recommended desktop services
Open the configuration:
sudo nano /etc/nixos/configuration.nixAdd only options that are not already present. Do not create a second copy of an option that already exists in the same file.
Place missing options somewhere inside the outermost { ... }, before the final }:
# Permit packages with non-free licenses.
nixpkgs.config.allowUnfree = true;
# Enable Flatpak applications.
services.flatpak.enable = true;
# Enable supported firmware updates.
services.fwupd.enable = true;
# Enable printing.
services.printing.enable = true;
# Detect compatible USB printers using IPP-over-USB.
services.ipp-usb.enable = true;
# Discover compatible network printers and other local services.
services.avahi = {
enable = true;
nssmdns4 = true;
openFirewall = true;
};
# Allow AppImage applications to run normally.
programs.appimage = {
enable = true;
binfmt = true;
};These options enable Flatpak, firmware updates, CUPS printing, network-printer discovery, IPP-over-USB, and AppImage execution. (wiki.nixos.org)
Save and exit:
Ctrl+O
Enter
Ctrl+XTest and apply:
sudo nixos-rebuild test
sudo nixos-rebuild switchRestart:
systemctl rebootPart 14: Add Flathub
After restarting, open Konsole and run:
flatpak remote-add --if-not-exists flathub \
https://dl.flathub.org/repo/flathub.flatpakrepoThen update Flatpak metadata:
flatpak updateSearch for an application:
flatpak search flatsealInstall an application:
flatpak install flathub com.github.tchx84.FlatsealFlatpak can also be used through a compatible graphical software application, but terminal commands are useful for confirming that the service and Flathub repository work. (wiki.nixos.org)
Part 15: Install ordinary NixOS packages
Step 39: Find the package attribute
Use the official NixOS Packages search. The name used in the configuration may differ slightly from the application’s display name. The official search covers more than 140,000 packages. (search.nixos.org)
Step 40: Find the existing package list
Open:
sudo nano /etc/nixos/configuration.nixSearch with Ctrl+W for:
environment.systemPackagesIt may resemble:
environment.systemPackages = with pkgs; [
wget
];Add package attributes inside the existing brackets:
environment.systemPackages = with pkgs; [
wget
curl
git
unzip
usbutils
pciutils
vlc
];Do not add commas between package names.
Save, test, and apply:
sudo nixos-rebuild test
sudo nixos-rebuild switchTo uninstall an application, remove its name from the list and rebuild the system. This is the declarative package-management method documented by NixOS. (nixos.org)
Part 16: Update device firmware
After enabling services.fwupd.enable, run:
fwupdmgr get-devicesRefresh firmware metadata:
fwupdmgr refreshCheck for updates:
fwupdmgr get-updatesApply available updates:
sudo fwupdmgr updateSome firmware updates are applied during the next reboot. Not every device supports updates through fwupd. (wiki.nixos.org)
Part 17: Add a printer
After enabling the printing options:
-
Open System Settings.
-
Select Printers.
-
Select Add Printer.
-
Wait for network or USB printer discovery.
-
Prefer a driverless IPP or IPP Everywhere entry when available.
-
Print a test page.
NixOS uses CUPS through services.printing, while Avahi and IPP-over-USB assist with compatible network and USB printer discovery. (wiki.nixos.org)
For your Epson L3560, first try the detected IPP/AirPrint-compatible entry rather than manually choosing an old model-specific driver.
Part 18: Run AppImages such as pCloud
NixOS does not normally run many AppImages out of the box because they expect libraries at conventional filesystem locations. Enabling:
programs.appimage = {
enable = true;
binfmt = true;
};registers AppImages so they can be invoked through appimage-run. (wiki.nixos.org)
After rebuilding, download the AppImage and make it executable:
chmod +x ~/Downloads/application.AppImageRun it:
~/Downloads/application.AppImageFor pCloud or another AppImage that still fails, test it explicitly with:
appimage-run ~/Downloads/application.AppImagePart 19: Keep the system updated
For routine stable-release updates, run:
sudo nixos-rebuild switch --upgradeRestart when the update includes a new kernel or when hardware-related packages were updated:
systemctl rebootA sensible frequency for a desktop is once a week.
Do not switch to the nixos-unstable channel during the initial learning period.
Part 20: Manage old system generations
NixOS does not upgrade packages in place. New package versions occupy new locations in /nix/store, so storage use can grow over time. The official manual recommends periodic garbage collection. (nixos.org)
Safe cleanup that preserves rollback generations
Run:
sudo nix-collect-garbageThis removes unreferenced store objects but preserves old system generations used for rollback.
Aggressive cleanup
The following command also removes old generations:
sudo nix-collect-garbage -dDo not run it immediately after installation or immediately after a major update. It removes old rollback generations. (nixos.org)
Part 21: Recover from a bad configuration
If nixos-rebuild reports an error
Do not reboot.
Read the error message carefully. It often identifies:
-
A missing semicolon
-
An unknown package
-
An invalid option
-
Duplicate attributes
-
An unmatched brace or bracket
Reopen the file:
sudo nano /etc/nixos/configuration.nixCorrect the problem and run:
sudo nixos-rebuild testIf the system boots but the new configuration is bad
Roll back to the immediately preceding generation:
sudo nixos-rebuild switch --rollbackIf the system will not boot
-
Restart.
-
Open the NixOS boot menu.
-
Select an earlier generation.
-
Boot it.
-
Correct
/etc/nixos/configuration.nix. -
Run:
sudo nixos-rebuild switchPrevious configurations appear in the boot menu unless they have been removed through garbage collection. (nixos.org)
Part 22: NVIDIA warning
For a desktop with a recent dedicated NVIDIA card, proprietary-driver configuration commonly includes options such as:
hardware.graphics.enable = true;
services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia.open = true;However, this example is not sufficient for every NVIDIA computer.
Do not paste it without checking:
-
Exact NVIDIA model
-
Whether the GPU is Turing or newer
-
Whether the computer has Intel/NVIDIA or AMD/NVIDIA hybrid graphics
-
Required PRIME mode
-
PCI bus IDs
Recent NVIDIA cards can use NVIDIA’s open kernel modules, while older models may require a legacy branch. Hybrid laptops require additional PRIME configuration. (wiki.nixos.org)
Part 23: Dual-boot warning
Do not choose Erase disk if you intend to preserve Windows, Kubuntu, or another operating system.
A dual-boot installation generally requires:
-
A verified backup
-
Shrinking the existing partition from its own operating system
-
Leaving the new space unallocated
-
Booting the NixOS USB in the same UEFI mode
-
Selecting manual partitioning
-
Reusing the existing EFI System Partition without formatting it
-
Creating a separate NixOS root partition in the unallocated space
-
Carefully configuring the bootloader
Those steps depend on the actual partition table, encryption status, BitLocker status, number of disks, and existing EFI layout. For a novice, the partition instructions should be based on an lsblk or KDE Partition Manager screenshot rather than a generic dual-boot recipe.
Installation completion checklist
The installation can be considered complete when all of the following work:
-
NixOS boots without the USB
-
Disk encryption unlocks correctly, if enabled
-
Plasma login works
-
Wi-Fi or Ethernet works
-
Audio works
-
Bluetooth works
-
Display brightness and sleep work
-
nixos-versionshows 26.05 -
sudo nixos-rebuild switch --upgradesucceeds -
/etc/nixoshas been backed up -
Flatpak and Flathub work
-
AppImages work if required
-
Firmware has been checked
-
Printing works if required
-
Personal files have been restored from backup
-
A separate continuing backup system has been configured
The most important NixOS habit is:
Edit configuration.nix → test → switch → keep a backupPersonal Configuration
The configuration has been updated and repackaged.
Download
-
Complete updated NixOS configuration (sandbox:/mnt/data/benjamin-nixos-26.05-config.zip)
-
configuration.nix (sandbox:/mnt/data/nixos-benjamin/configuration.nix)
-
home.nix (sandbox:/mnt/data/nixos-benjamin/home.nix)
-
flake.nix (sandbox:/mnt/data/nixos-benjamin/flake.nix)
-
Installation and usage guide (sandbox:/mnt/data/nixos-benjamin/README.md)
Main changes
Flatpak applications
The configuration now installs these versions declaratively from Flathub:
-
OBS Studio
-
Kdenlive
-
GIMP
-
VLC
-
PSPP
-
PDF Arranger
-
Okular
-
LibreOffice
-
Thunderbird
-
Teams for Linux
-
Whatsie
-
Czkawka
-
Ark
-
Filelight
-
Kate
-
Flatseal
Flathub is configured automatically, Flatpaks update weekly, and applications installed manually through Discover are preserved. (GitHub)
System-integrated utilities such as GNOME Disks, KDE Partition Manager, Konsole, Spectacle, Syncthing Tray, and command-line programs remain native NixOS packages.
Firefox Progressive Web Apps
Firefox remains a native NixOS package, because FirefoxPWA’s native-messaging connector is not compatible with Flatpak Firefox. (PWAsForFirefox)
The configuration installs:
-
firefoxpwa -
its native-messaging registration
-
the Progressive Web Apps for Firefox extension automatically
-
KDE file-picker integration
Syncthing
Syncthing now:
-
starts automatically as user
ben -
preserves devices and folders configured through its web interface
-
opens its standard discovery and transfer ports
-
keeps the management interface local at
http://127.0.0.1:8384 -
launches Syncthing Tray when Plasma starts (MyNixOS)
Plasma panel
The panel is managed declaratively through Plasma Manager and automatically contains:
-
Weather Report
-
Total CPU Use
-
Memory Usage
-
Network Speed
-
System Tray
-
Digital Clock
-
Show Desktop
The clock defaults to:
-
Long date
-
12-hour time
-
no seconds
-
date below the time
-
Sunday as the first day of the calendar week
These clock and system-monitor settings use Plasma Manager’s supported configuration options. (GitHub)
The Weather Report widget is inserted automatically, but you must select its location once after logging in. The configuration permits that choice to persist rather than overwriting it during each rebuild. (GitHub)
Applying the files
Copy all three Nix files:
sudo cp configuration.nix flake.nix home.nix /etc/nixos/Then update and test:
sudo nix flake update /etc/nixos
sudo nixos-rebuild test --flake /etc/nixos#nixosIf the test succeeds:
sudo nixos-rebuild switch --flake /etc/nixos#nixos
systemctl rebootThe files passed static structure, required-entry, preload-removal, and ZIP-integrity checks. I could not perform a complete nixos-rebuild evaluation in this environment, so the test command remains important before making the configuration permanent.
NixOS Upgrades
No—not by default
A standard NixOS installation does not automatically download and install system or package updates. You normally update a channel-based installation manually with:
sudo nixos-rebuild switch --upgradeThis downloads the latest packages from your currently selected NixOS channel, builds a new system generation, and activates it. (nixos.org)
Enabling automatic updates
Add the following inside the main { ... } section of /etc/nixos/configuration.nix:
system.autoUpgrade = {
enable = true;
dates = "weekly";
allowReboot = false;
};Then apply the change:
sudo nixos-rebuild switchNixOS will subsequently run its nixos-upgrade systemd service according to that schedule. Keeping allowReboot = false prevents unexpected automatic restarts. (nixos.org)
You can check the schedule with:
systemctl list-timers nixos-upgrade.timerAnd inspect the latest update attempt with:
systemctl status nixos-upgrade.serviceAutomatic updating follows your current channel—for example, NixOS 26.05. It does not normally move you automatically to the next major NixOS release; changing release channels remains a deliberate administrative step. For a new NixOS user, I recommend running manual updates weekly for the first few weeks before enabling unattended upgrades.