summary refs log tree commit diff
path: root/nixos/doc/manual/configuration/adding-custom-packages.xml
diff options
context:
space:
mode:
authorGraham Christensen <graham@grahamc.com>2018-04-30 21:30:20 -0400
committerGitHub <noreply@github.com>2018-04-30 21:30:20 -0400
commitd1165dba9979b6bd4ba063b7e39384ece33eec4e (patch)
tree97ef14c099cb326ce0271de38f075ac3ed4df91a /nixos/doc/manual/configuration/adding-custom-packages.xml
parent8cb0252b1e50a5236793e0fbf39b39510725ccf0 (diff)
parent7292c5a5701bacc4188a00e0399a92aa748ec6a5 (diff)
downloadnixlib-d1165dba9979b6bd4ba063b7e39384ece33eec4e.tar
nixlib-d1165dba9979b6bd4ba063b7e39384ece33eec4e.tar.gz
nixlib-d1165dba9979b6bd4ba063b7e39384ece33eec4e.tar.bz2
nixlib-d1165dba9979b6bd4ba063b7e39384ece33eec4e.tar.lz
nixlib-d1165dba9979b6bd4ba063b7e39384ece33eec4e.tar.xz
nixlib-d1165dba9979b6bd4ba063b7e39384ece33eec4e.tar.zst
nixlib-d1165dba9979b6bd4ba063b7e39384ece33eec4e.zip
Merge pull request #38831 from rdnetto/improve-cross-refs
Improve cross referencing in NixOS Manual
Diffstat (limited to 'nixos/doc/manual/configuration/adding-custom-packages.xml')
-rw-r--r--nixos/doc/manual/configuration/adding-custom-packages.xml6
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/doc/manual/configuration/adding-custom-packages.xml b/nixos/doc/manual/configuration/adding-custom-packages.xml
index ab3665bae504..ae58f61d73ed 100644
--- a/nixos/doc/manual/configuration/adding-custom-packages.xml
+++ b/nixos/doc/manual/configuration/adding-custom-packages.xml
@@ -24,7 +24,7 @@ manual.  Finally, you add it to
 <literal>environment.systemPackages</literal>, e.g.
 
 <programlisting>
-environment.systemPackages = [ pkgs.my-package ];
+<xref linkend="opt-environment.systemPackages"/> = [ pkgs.my-package ];
 </programlisting>
 
 and you run <command>nixos-rebuild</command>, specifying your own
@@ -41,7 +41,7 @@ Nixpkgs tree.  For instance, here is how you specify a build of the
 package directly in <filename>configuration.nix</filename>:
 
 <programlisting>
-environment.systemPackages =
+<xref linkend="opt-environment.systemPackages"/> =
   let
     my-hello = with pkgs; stdenv.mkDerivation rec {
       name = "hello-2.8";
@@ -57,7 +57,7 @@ environment.systemPackages =
 Of course, you can also move the definition of
 <literal>my-hello</literal> into a separate Nix expression, e.g.
 <programlisting>
-environment.systemPackages = [ (import ./my-hello.nix) ];
+<xref linkend="opt-environment.systemPackages"/> = [ (import ./my-hello.nix) ];
 </programlisting>
 where <filename>my-hello.nix</filename> contains:
 <programlisting>