2018-10-25 10:15:25 +02: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>
|
|
|
|
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:
|
|
|
|
</para>
|
|
|
|
<programlisting>
|
|
|
|
imports = [
|
|
|
|
<nixpkgs/nixos/modules/profiles/profile-name.nix>
|
|
|
|
];
|
|
|
|
</programlisting>
|
|
|
|
<para>
|
|
|
|
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.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
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.
|
|
|
|
</para>
|
|
|
|
<xi:include href="profiles/all-hardware.xml" />
|
2018-10-25 10:16:06 +02:00
|
|
|
<xi:include href="profiles/base.xml" />
|
2018-10-25 10:17:07 +02:00
|
|
|
<xi:include href="profiles/clone-config.xml" />
|
2018-10-25 10:17:31 +02:00
|
|
|
<xi:include href="profiles/demo.xml" />
|
2018-10-25 10:18:14 +02:00
|
|
|
<xi:include href="profiles/docker-container.xml" />
|
2018-10-25 10:20:05 +02:00
|
|
|
<xi:include href="profiles/graphical.xml" />
|
2018-10-25 10:20:34 +02:00
|
|
|
<xi:include href="profiles/hardened.xml" />
|
2018-10-25 10:20:58 +02:00
|
|
|
<xi:include href="profiles/headless.xml" />
|
2018-10-25 10:21:34 +02:00
|
|
|
<xi:include href="profiles/installation-device.xml" />
|
2018-10-25 10:22:04 +02:00
|
|
|
<xi:include href="profiles/minimal.xml" />
|
2018-11-06 12:50:41 +01:00
|
|
|
<xi:include href="profiles/qemu-guest.xml" />
|
2018-10-25 10:15:25 +02:00
|
|
|
</chapter>
|