2018-10-25 09:15:25 +01:00
<chapter xmlns= "http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xi="http://www.w3.org/2001/XInclude"
version="5.0"
xml:id="ch-profiles">
<title > Profiles</title>
<para >
2019-09-18 21:13:35 +01:00
In some cases, it may be desirable to take advantage of commonly-used, predefined configurations provided by nixpkgs, but different from those that come as default. This is a role fulfilled by NixOS's Profiles, which come as files living in <filename > < nixpkgs/nixos/modules/profiles> </filename> . That is to say, expected usage is to add them to the imports list of your <filename > /etc/configuration.nix</filename> as such:
2018-10-25 09:15:25 +01:00
</para>
2019-03-22 13:44:11 +00:00
<programlisting >
2018-10-25 09:15:25 +01:00
imports = [
< nixpkgs/nixos/modules/profiles/profile-name.nix>
];
2019-06-17 11:01:51 +01:00
</programlisting>
2018-10-25 09:15:25 +01:00
<para >
2019-09-18 21:13:35 +01:00
Even if some of these profiles seem only useful in the context of install media, many are actually intended to be used in real installs.
2018-10-25 09:15:25 +01:00
</para>
<para >
2019-09-18 21:13:35 +01:00
What follows is a brief explanation on the purpose and use-case for each profile. Detailing each option configured by each one is out of scope.
2018-10-25 09:15:25 +01:00
</para>
<xi:include href= "profiles/all-hardware.xml" />
2018-10-25 09:16:06 +01:00
<xi:include href= "profiles/base.xml" />
2018-10-25 09:17:07 +01:00
<xi:include href= "profiles/clone-config.xml" />
2018-10-25 09:17:31 +01:00
<xi:include href= "profiles/demo.xml" />
2018-10-25 09:18:14 +01:00
<xi:include href= "profiles/docker-container.xml" />
2018-10-25 09:20:05 +01:00
<xi:include href= "profiles/graphical.xml" />
2018-10-25 09:20:34 +01:00
<xi:include href= "profiles/hardened.xml" />
2018-10-25 09:20:58 +01:00
<xi:include href= "profiles/headless.xml" />
2018-10-25 09:21:34 +01:00
<xi:include href= "profiles/installation-device.xml" />
2018-10-25 09:22:04 +01:00
<xi:include href= "profiles/minimal.xml" />
2018-11-06 11:50:41 +00:00
<xi:include href= "profiles/qemu-guest.xml" />
2018-10-25 09:15:25 +01:00
</chapter>