Welcome to The Nix Arms · est. generation 1

Linux without the hangover.

NixOS is Linux you describe instead of tinker with. Write down what you want, rebuild, and if anything breaks, pick yesterday from the boot menu. Pull up a stool and I’ll show you round. Kids and dogs welcome.

Free, open source, and you can try it in a virtual machine first. No commitment.

Tonight's order: one gaming PC

# configuration.nix: the whole machine
{ pkgs, ... }: {
  networking.hostName = "the-snug";
  services.desktopManager.plasma6.enable = true;
  programs.steam.enable = true;
  programs.gamemode.enable = true;
  environment.systemPackages = with pkgs; [
    firefox discord obs-studio
  ];
}

House rules

Why people stay

Bad pint? Send it back.

Every change creates a new generation, which is a save point for your whole system. If an update goes wrong, pick the last good one from the boot menu.

Same recipe, same pint.

Your apps, settings, drivers and users are all written down. On a new PC you copy the config across and rebuild, and it’s your machine again.

The biggest cellar going.

nixpkgs has over 100,000 packages, more than any other Linux distro. If it runs on Linux, it’s probably in there.

At the bar

What are you drinking?

Say where you're coming from and you'll get the right guide.

Coming off Windows? You're in good company.

Think of NixOS as System Restore that actually works, plus an app list you can carry to any PC. The guide also lists what won’t come with you.

Read the Windows guide
  • A graphical installer, so you can get going without a terminal
  • Steam, Discord, browsers and OBS are one line each
  • What to expect with anti-cheat games, Adobe and Office

Tonight's specials

What's on tap

Example configs →
Frost-Phoenix's NixOS desktop running Hyprland, with a system-info panel and ASCII art

A desktop that's entirely yours

Bars, themes, keybinds and wallpapers all live in your config, so your setup survives a reinstall.

A gaming.nix file in an editor next to a terminal running nixos-rebuild switch

A gaming rig in a dozen lines

Steam, Proton, gamemode, MangoHud and a couch-ready gamescope session.

Diagram: one nix-config repo building two machines, a gaming desktop and a Surface tablet

Same setup on every machine

A desktop and a tablet built from one repo. Change a setting once and both pick it up.

A Homepage dashboard showing media, download and network services with live stats

A home server, one line per service

A media server, photo backup, ad blocking and a dashboard to watch it all. Each is a few lines of config.

Terminal: cowsay is missing, nix-shell -p cowsay makes it available, and after exit it is gone again

Try any app without installing it

Run something once, close the terminal, and it's gone. No leftovers, no clutter.

Boot menu listing six NixOS generations, with yesterday's selected

Fearless experimenting

Try a new desktop tonight. Don't like it? Yesterday's system is still in the boot menu.

Nix jargon, translated

Chalked up for newcomers. No computer science degree required.

Generation

A save point for your whole system. You can boot into any of them.

Rebuild

“Apply my changes.” You edit the file, then rebuild to make it real.

nixpkgs

The cellar. Where every package lives, and the place you search for apps.

Flake

A recipe with the exact version of every ingredient written on it. Same pint, every time.

Home Manager

The same idea, for your own apps and dotfiles rather than the whole system.

Declarative

Saying what you want, not the steps to get there. Like ordering, not brewing.

See the full menu →

Propping up the bar

The Regulars

Real configs worth reading, each with notes on what to borrow.

All regulars →
Misterio77/nix-starter-configs
Gabriel Fontes
First pint

Minimal and standard flake templates with heavy comments, designed to be the thing you copy on day one.

Worth borrowing: The whole thing. Start your own config from the minimal template.

The library

When you're ready for more

The whole library →

Last orders

Before you head home

One for the road

Try before you buy

nix-shell -p cowsay

Opens a shell with the app available. Type exit and it’s gone again. Nothing was installed.

Pull up a stool

Where the regulars drink

Questions, setups and the odd friendly argument. Come and say hello.

  • NixOS DiscourseThe official forum. Beginner questions are welcome. Search first, then ask.
  • NixOS on MatrixThe official chat rooms, for quick questions and a natter.
  • r/NixOSCommunity-run subreddit: screenshots, setups and help threads.
  • The Nix Arms on GitHubFix a typo, add a tip, or submit your config to The Regulars.

New guides and Regulars in your feed reader: RSS feed