TopGit
GitHub Repo Review

NixOS Hardware: Device-Specific NixOS Modules

NixOS/nixos-hardware
NTopGit review image for NixOS/nixos-hardware
Review by Topgit.dev for NixOS/nixos-hardware, with GitHub repository stats and README context.
Quick verdict

NixOS Hardware is a collection of ready-made NixOS modules that patch known quirks for specific laptops, boards, and other devices, covering machines like the Lenovo ThinkPad X220 and Dell XPS 13 9310. Reach for it the moment your exact model turns up in the profile table — importing the module beats hand-copying kernel fixes from a forum thread. Skip it if your hardware isn't listed; nothing here helps you configure unprofiled silicon.

Stars
★ 3.4k
Forks
⑂ 1.0k
Language
Nix
License
CC0-1.0
Topic
—
Updated
Nov 2026
Homepage
—
GitHub

What NixOS Hardware Profiles Are

NixOS Hardware is a repository of importable NixOS modules, each tuned to the hardware quirks of a specific device — a laptop model, a single-board computer, a server chassis. Each profile is a Nix expression you add to the imports list of your own configuration.nix or flake, not a package you install. The repo tracks each device by its own directory path, like lenovo/thinkpad/x220 or apple/t2.

Key Features for Hardware Optimization

  • ✓Per-device profile paths organized by vendor and model, such as <nixos-hardware/lenovo/thinkpad/x220>, <nixos-hardware/apple/t2>, and <nixos-hardware/dell/xps/13-9310>.
  • ✓Three supported import mechanisms: nix-channel, an experimental nix flakes input, and builtins.fetchGit for pinning to a specific commit.
  • ✓A named flake module per device, like nixos-hardware.nixosModules.dell-xps-13-9380, so flake users reference a profile without typing a path string.
  • ✓Coverage spans laptops (ThinkPad, XPS, MacBook, Zenbook, ROG lines), workstation and server boards (Asus Pro WS X570-ACE, Asrock Rack ALTRAD8UD-1L2T), a single-board computer (BeagleBoard PocketBeagle), and firewall appliances (Deciso DEC series).
  • ✓Channel imports pick up new quirk fixes automatically on nix-channel --update; fetchGit imports refetch on every rebuild unless you pin a revision.
  • ✓CC0-1.0 licensing puts every module in the public domain, so there's no attribution step or license file to reconcile before use.
How this repository's GitHub stars have grown over time. Source: star-history.com.View the star history ↗

When to Use These Hardware Modules

  • •You're installing NixOS on a laptop with known quirks and want to skip re-deriving kernel, firmware, or power-management fixes someone already solved for that exact model.
  • •You maintain several machines of the same model, like a fleet of Dell Latitude 7420s, and want one shared profile instead of copying quirk fixes into each host's config.
  • •You're building a flake-based NixOS config and want a named nixosModules.<device> input instead of hand-writing hardware-specific overrides.
  • •You want a working example of how a specific hardware quirk gets fixed in Nix, as a reference before writing your own module for hardware that isn't listed.

Adding Hardware Profiles to NixOS

Adding NixOS Hardware to your system isn't a package install — it adds a module source that your configuration.nix or flake can import from. The README documents three ways to do it. Channels: run sudo nix-channel --add https://github.com/NixOS/nixos-hardware/archive/master.tar.gz nixos-hardware, then sudo nix-channel --update. After that, profile paths are available as <nixos-hardware/...> in your imports. Flakes: the README notes flake support is still experimental. Add nixos-hardware as a flake input pointed at github:NixOS/nixos-hardware, with inputs.nixpkgs.follows = "nixpkgs" so it shares your nixpkgs, then reference a device's named module from nixos-hardware.nixosModules.<device>. fetchGit: builtins.fetchGit { url = "https://github.com/NixOS/nixos-hardware.git"; } pulls the repository directly inside your Nix expression. Unlike the channel, this refetches the repo on every rebuild unless you pin it to a specific revision.

Applying a Device-Specific Profile

Once the source is available, applying a profile is one line in imports. The README's own example enables the Lenovo ThinkPad X220 profile via channel like this: imports = [ <nixos-hardware/lenovo/thinkpad/x220> ./hardware-configuration.nix ]; With flakes, you add the named module — for example nixos-hardware.nixosModules.dell-xps-13-9380 — to your nixosConfigurations.<hostname> modules list. To find your device, search the profile table in the repo for its path; Dell, Asus, Apple, and Lenovo lines have the most entries. If your exact model or hardware revision isn't in the table, no profile applies automatically, and getting one added runs through a CONTRIBUTING.md pull request rather than anything usage alone can give you.

Strengths

  • ✓Profiles cover a wide range of real, named hardware — from ThinkPads and XPS laptops to Apple T2 Macs, gaming laptops (Asus ROG/TUF lines), and even a single-board computer and firewall appliances.
  • ✓Three supported import paths (channel, flake, fetchGit) let you match whichever config style your NixOS setup already uses.
  • ✓CC0-1.0 licensing means no attribution or compliance overhead to adopt a profile.
  • ✓A documented, regular community meeting (monthly) and a public Matrix room give it an active point of contact, not just a dormant repo.
  • ✓Flake modules are exposed by name per device, so flake users get a clean input reference instead of a raw file path string.

Scope and Current Limitations

  • △Coverage is limited to what someone has already contributed a profile for; unlisted hardware, or even a slightly different revision of a listed model, gets nothing.
  • △Flake support is documented as experimental, so behavior there isn't guaranteed to be as stable as the channel path.
  • △The README doesn't spell out what each individual profile actually changes (kernel modules, firmware packages, power settings) — you have to read the profile's own Nix source to know what you're importing.
  • △No version numbers or release notes are documented; channel imports mean you're always tracking the moving master branch, not a pinned release.
  • △The community meeting cadence (monthly, 3rd Friday) suggests review and merge of new profiles isn't continuous — getting a new device added may take time.

Other Approaches to NixOS Hardware Setup

nixos-generate-config — NixOS's built-in tool that scans your machine and writes a bespoke hardware-configuration.nix instead of importing a maintained community profile.Hand-written NixOS modules — writing your own kernel, firmware, or power-management fixes directly in configuration.nix, useful when your device isn't in the NixOS Hardware table.Distro-specific vendor driver packages (e.g. DKMS modules on Ubuntu or Fedora) — the non-NixOS equivalent of solving the same hardware quirks.The hardware-configuration.nix NixOS generates at install time — covers filesystem and boot basics but not the vendor-specific quirks NixOS Hardware profiles target.

Common Questions

How do I add a new device profile to NixOS Hardware?

Adding a new device profile to NixOS Hardware means submitting it as a contribution — the README points contributors to CONTRIBUTING.md for the process rather than describing the steps inline.

What is the license for NixOS Hardware modules?

NixOS Hardware modules are released under the CC0-1.0 license, effectively placing them in the public domain with no attribution required.

How can I get support or discuss NixOS Hardware?

NixOS Hardware discussion happens in the project's Matrix room (#nixos-hardware:nixos.org), and the team behind it can also be reached at [email protected].

What is the difference between installing with channels and flakes?

Channels add NixOS Hardware via nix-channel --add and reference profiles by path, like <nixos-hardware/lenovo/thinkpad/x220>, updating whenever you run nix-channel --update. Flakes add it as a flake input and reference profiles by name, e.g. nixos-hardware.nixosModules.dell-xps-13-9380 — the README notes flake support is still experimental.

What types of hardware profiles are included in this collection?

The profile table spans laptops (ThinkPad, Dell XPS, MacBook, Asus Zenbook/ROG), workstation and server boards (Asus Pro WS X570-ACE, Dell PowerEdge R7515, Asrock Rack ALTRAD8UD-1L2T), a single-board computer (BeagleBoard PocketBeagle), and network appliances (Deciso DEC series).

How often does the NixOS hardware team meet?

The NixOS Hardware team meets every 3rd Friday of the month at 06:00 pm (18:00) UTC, in a Jitsi call open to all contributors and users.

The problem it solves

Installing NixOS on real hardware often gets you a system that boots with the generic kernel config, but not necessarily working trackpad palm rejection on a Lenovo ThinkPad, correct backlight control on a MacBook, or working GPU switching on an Asus ROG Flow. NixOS Hardware exists so those device-specific fixes get worked out once, written as a shared Nix module, and imported — instead of every user re-discovering the same kernel parameters, firmware packages, or udev rules from a forum thread each time they install NixOS on that model.

Who should try it — and who should skip

Try NixOS Hardware if you're installing NixOS on a laptop, board, or appliance that shows up in its profile table — importing the module is faster and more reliable than re-deriving the same kernel and firmware fixes yourself. Skip it if your device isn't listed: there's no generic fallback here, and you'd be looking at CONTRIBUTING.md to write your own profile rather than consuming one.

Source & attribution

Facts sourced from the NixOS/nixos-hardware GitHub repository and its README.

GitHub data · last synced Aug 12, 2026Reviewed by Henry
← Back to TopGit

Still deciding about nixos-hardware?

One click hands the question to an AI along with this page — see what it says about nixos-hardware.

GitHub