How to Install VS Code on NixOS 26.05 (Step by Step for Beginners)

beginnerSoftware Install2 min
Independently tested and verified on Nov 16, 2026. Commands reproduced exactly as run.
Video thumbnail: How to Install VS Code on NixOS 26.05 (Step by Step for Beginners)

Prerequisites

  • A computer running NixOS 26.05
  • An internet connection to download the package
  • Your account password, which sudo asks for

This tutorial takes about 2 minutes to complete.

This guide shows how to install VS Code on NixOS 26.05. NixOS is declarative, so there is no installer to download: you edit the system configuration, add vscodium (the open source build of VS Code), apply it with nixos-rebuild switch and start it from the applications menu or the terminal. It follows the video.

Before you start

You need a computer running NixOS 26.05, an internet connection and your account password: sudo asks for it when you edit the configuration and when you rebuild.

Jump to a chapter in the video: Intro · Edit the config · Rebuild and run

Step 1: Edit configuration.nix

Open a terminal and run the command below to open the system configuration in nano. Enter your password. First make sure unfree packages are allowed: find the line nixpkgs.config.allowUnfree and make sure it is set to true. Next scroll down to the environment.systemPackages section and uncomment the four lines of the block, then add vscodium on its own line inside the list. Press Ctrl + X, type Y for yes and press Enter to save.

sudo nano /etc/nixos/configuration.nix

The nano editor on NixOS with configuration.nix open and the allowUnfree line highlighted

The environment.systemPackages block of configuration.nix with vscodium added

Step 2: Apply the configuration

Now apply the new configuration with the command below and enter your password when it asks. When it finishes, reboot your system.

sudo nixos-rebuild switch

The terminal on NixOS with the sudo nixos-rebuild switch command typed

Step 3: Start VSCodium

After the reboot, open the applications menu, click Show apps and double-click VSCodium. You can also open a terminal and type codium to start it.

codium

VSCodium open on NixOS 26.05 after the install

FAQ

Open /etc/nixos/configuration.nix with sudo nano, set nixpkgs.config.allowUnfree to true, add vscodium to environment.systemPackages, save, run `sudo nixos-rebuild switch` and start it from the applications menu or with the `codium` command.
NixOS is declarative: you describe the system in configuration.nix and nixos-rebuild switch builds it, so there is no installer to download.
No. vscodium is the open source build of VS Code, which works the same way.
Open the applications menu, click Show apps and look for VSCodium, or type the `codium` command in a terminal.

Never miss an issue

One email a week on local LLMs, DIY AI hardware, and the tools that power them. No spam — unsubscribe anytime.

Subscribe free

Products used in this tutorial

AMD Ryzen 9 9950X
cpu

AMD Ryzen 9 9950X

16-core, 32-thread AMD Ryzen 9 9950X desktop processor (Zen 5, AM5) with 5.7 GHz max boost and Radeon graphics — AMD's flagship mainstream CPU.

3 retailers
Gigabyte X870 Eagle WiFi 7
motherboard

Gigabyte X870 Eagle WiFi 7

AMD X870 ATX motherboard for AM5 with PCIe 5.0, DDR5, USB4, Wi-Fi 7 and 2.5GbE LAN — a modern foundation for Ryzen 9000-series desktop builds.

3 retailers
fanxiang S880R 1TB PCIe 4.0 NVMe SSD
storage

fanxiang S880R 1TB PCIe 4.0 NVMe SSD

fanxiang S880R 1TB PCIe 4.0 NVMe M.2 SSD with built-in heatsink — up to 7300MB/s reads and 3D TLC NAND for high-performance desktop and console storage.

2 retailers