diff options
author | Robert Hensing <robert@roberthensing.nl> | 2017-12-07 20:30:45 +0100 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2018-04-22 12:34:02 +0100 |
commit | 1441806c27f3775db580360e072ead2afbe00ae9 (patch) | |
tree | b8965811c0f1937a48c0b20b0cbe115684af3045 /nixos | |
parent | f56d4842254a08300dcf03442ed9d53f709ddf75 (diff) |
nixpkgs: add nixos function
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/doc/manual/release-notes/rl-1809.xml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/nixos/doc/manual/release-notes/rl-1809.xml b/nixos/doc/manual/release-notes/rl-1809.xml index 61f9ec8ba9950..29abea1afd6a5 100644 --- a/nixos/doc/manual/release-notes/rl-1809.xml +++ b/nixos/doc/manual/release-notes/rl-1809.xml @@ -77,6 +77,20 @@ following incompatible changes:</para> <itemizedlist> <listitem> <para> + The <literal>pkgs</literal> argument to NixOS modules can now be set directly using <literal>nixpkgs.pkgs</literal>. Previously, only the <literal>system</literal>, <literal>config</literal> and <literal>overlays</literal> arguments could be used to influence <literal>pkgs</literal>. + </para> + </listitem> + <listitem> + <para> + A NixOS system can now be constructed more easily based on a preexisting invocation of Nixpkgs. For example: + <programlisting> +inherit (pkgs.nixos { + boot.loader.grub.enable = false; + fileSystems."/".device = "/dev/xvda1"; +}) toplevel kernel initialRamdisk manual; + </programlisting> + + This benefits evaluation performance, lets you write Nixpkgs packages that depend on NixOS images and is consistent with a deployment architecture that would be centered around Nixpkgs overlays. </para> </listitem> </itemizedlist> |