Fixed indentation
This commit is contained in:
parent
42a84598fb
commit
7292c5a570
@ -12,7 +12,10 @@ interfaces. However, you can configure an interface manually as
|
|||||||
follows:
|
follows:
|
||||||
|
|
||||||
<programlisting>
|
<programlisting>
|
||||||
<link linkend="opt-networking.interfaces._name__.ipv4.addresses">networking.interfaces.eth0.ipv4.addresses</link> = [ { address = "192.168.1.2"; prefixLength = 24; } ];
|
<link linkend="opt-networking.interfaces._name__.ipv4.addresses">networking.interfaces.eth0.ipv4.addresses</link> = [ {
|
||||||
|
address = "192.168.1.2";
|
||||||
|
prefixLength = 24;
|
||||||
|
} ];
|
||||||
</programlisting>
|
</programlisting>
|
||||||
|
|
||||||
Typically you’ll also want to set a default gateway and set of name
|
Typically you’ll also want to set a default gateway and set of name
|
||||||
|
@ -26,7 +26,10 @@ example, we use interface <varname>eth0</varname>):
|
|||||||
DHCPv6. You can configure an interface manually:
|
DHCPv6. You can configure an interface manually:
|
||||||
|
|
||||||
<programlisting>
|
<programlisting>
|
||||||
<link linkend="opt-networking.interfaces._name__.ipv6.addresses">networking.interfaces.eth0.ipv6.addresses</link> = [ { address = "fe00:aa:bb:cc::2"; prefixLength = 64; } ];
|
<link linkend="opt-networking.interfaces._name__.ipv6.addresses">networking.interfaces.eth0.ipv6.addresses</link> = [ {
|
||||||
|
address = "fe00:aa:bb:cc::2";
|
||||||
|
prefixLength = 64;
|
||||||
|
} ];
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
@ -12,8 +12,8 @@ management. In the declarative style, users are specified in
|
|||||||
states that a user account named <literal>alice</literal> shall exist:
|
states that a user account named <literal>alice</literal> shall exist:
|
||||||
|
|
||||||
<programlisting>
|
<programlisting>
|
||||||
<xref linkend="opt-users.users"/>.alice =
|
<xref linkend="opt-users.users"/>.alice = {
|
||||||
{ <link linkend="opt-users.users._name__.isNormalUser">isNormalUser</link> = true;
|
<link linkend="opt-users.users._name__.isNormalUser">isNormalUser</link> = true;
|
||||||
<link linkend="opt-users.users._name__.home">home</link> = "/home/alice";
|
<link linkend="opt-users.users._name__.home">home</link> = "/home/alice";
|
||||||
<link linkend="opt-users.users._name__.description">description</link> = "Alice Foobar";
|
<link linkend="opt-users.users._name__.description">description</link> = "Alice Foobar";
|
||||||
<link linkend="opt-users.users._name__.extraGroups">extraGroups</link> = [ "wheel" "networkmanager" ];
|
<link linkend="opt-users.users._name__.extraGroups">extraGroups</link> = [ "wheel" "networkmanager" ];
|
||||||
|
@ -183,7 +183,9 @@ $ sudo groupdel nixbld</screen>
|
|||||||
account with <literal>sudo passwd -l root</literal> if you use
|
account with <literal>sudo passwd -l root</literal> if you use
|
||||||
<literal>sudo</literal>)</para>
|
<literal>sudo</literal>)</para>
|
||||||
|
|
||||||
<programlisting><link linkend="opt-users.users._name__.initialHashedPassword">users.extraUsers.root.initialHashedPassword</link> = "";</programlisting>
|
<programlisting>
|
||||||
|
<link linkend="opt-users.users._name__.initialHashedPassword">users.extraUsers.root.initialHashedPassword</link> = "";
|
||||||
|
</programlisting>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
@ -243,13 +245,15 @@ $ sudo groupdel nixbld</screen>
|
|||||||
|
|
||||||
<screen>
|
<screen>
|
||||||
$ sudo touch /etc/NIXOS
|
$ sudo touch /etc/NIXOS
|
||||||
$ sudo touch /etc/NIXOS_LUSTRATE</screen>
|
$ sudo touch /etc/NIXOS_LUSTRATE
|
||||||
|
</screen>
|
||||||
|
|
||||||
<para>Let's also make sure the NixOS configuration files are kept
|
<para>Let's also make sure the NixOS configuration files are kept
|
||||||
once we reboot on NixOS:</para>
|
once we reboot on NixOS:</para>
|
||||||
|
|
||||||
<screen>
|
<screen>
|
||||||
$ echo etc/nixos | sudo tee -a /etc/NIXOS_LUSTRATE</screen>
|
$ echo etc/nixos | sudo tee -a /etc/NIXOS_LUSTRATE
|
||||||
|
</screen>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
|
@ -380,11 +380,9 @@ drive (here <filename>/dev/sda</filename>). <xref linkend="ex-config"
|
|||||||
|
|
||||||
<example xml:id='ex-config'><title>NixOS Configuration</title>
|
<example xml:id='ex-config'><title>NixOS Configuration</title>
|
||||||
<screen>
|
<screen>
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }: {
|
||||||
|
imports = [
|
||||||
{
|
# Include the results of the hardware scan.
|
||||||
imports =
|
|
||||||
[ # Include the results of the hardware scan.
|
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -398,7 +396,8 @@ drive (here <filename>/dev/sda</filename>). <xref linkend="ex-config"
|
|||||||
|
|
||||||
# Enable the OpenSSH server.
|
# Enable the OpenSSH server.
|
||||||
services.sshd.enable = true;
|
services.sshd.enable = true;
|
||||||
}</screen>
|
}
|
||||||
|
</screen>
|
||||||
</example>
|
</example>
|
||||||
|
|
||||||
<xi:include href="installing-usb.xml" />
|
<xi:include href="installing-usb.xml" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user