From a93d01fb4d66addd20afb3c8eba982ee80fdc9a8 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Sat, 26 Oct 2019 16:37:52 +0200 Subject: [PATCH] faq: describe how to install Nixpkgs unstable packages --- FAQ.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/FAQ.md b/FAQ.md index 141ecc6ea..a83a90f6c 100644 --- a/FAQ.md +++ b/FAQ.md @@ -119,3 +119,33 @@ The solution on NixOS is to add services.dbus.packages = with pkgs; [ gnome3.dconf ]; to your system configuration. + +How do I install packages from Nixpkgs unstable? +------------------------------------------------ + +If you are using a stable version of Nixpkgs but would like to install +some particular packages from Nixpkgs unstable then you can import the +unstable Nixpkgs and refer to its packages within your configuration. +Something like + +```nix +{ pkgs, config, ... }: + +let + + pkgsUnstable = import {}; + +in + +{ + home.packages = [ + pkgsUnstable.foo + ]; + + # … +} +``` + +should work provided you have a Nix channel called `nixpkgs-unstable`. +Note, the package will not be affected by any package overrides, +overlays, etc.