at 23.05-pre 1.7 kB view raw
1<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude" xml:id="ch-profiles"> 2 <title>Profiles</title> 3 <para> 4 In some cases, it may be desirable to take advantage of 5 commonly-used, predefined configurations provided by nixpkgs, but 6 different from those that come as default. This is a role fulfilled 7 by NixOS's Profiles, which come as files living in 8 <literal>&lt;nixpkgs/nixos/modules/profiles&gt;</literal>. That is 9 to say, expected usage is to add them to the imports list of your 10 <literal>/etc/configuration.nix</literal> as such: 11 </para> 12 <programlisting language="bash"> 13imports = [ 14 &lt;nixpkgs/nixos/modules/profiles/profile-name.nix&gt; 15]; 16</programlisting> 17 <para> 18 Even if some of these profiles seem only useful in the context of 19 install media, many are actually intended to be used in real 20 installs. 21 </para> 22 <para> 23 What follows is a brief explanation on the purpose and use-case for 24 each profile. Detailing each option configured by each one is out of 25 scope. 26 </para> 27 <xi:include href="profiles/all-hardware.section.xml" /> 28 <xi:include href="profiles/base.section.xml" /> 29 <xi:include href="profiles/clone-config.section.xml" /> 30 <xi:include href="profiles/demo.section.xml" /> 31 <xi:include href="profiles/docker-container.section.xml" /> 32 <xi:include href="profiles/graphical.section.xml" /> 33 <xi:include href="profiles/hardened.section.xml" /> 34 <xi:include href="profiles/headless.section.xml" /> 35 <xi:include href="profiles/installation-device.section.xml" /> 36 <xi:include href="profiles/minimal.section.xml" /> 37 <xi:include href="profiles/qemu-guest.section.xml" /> 38</chapter>