mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 19:49:45 +01:00
docs: add language attribute to program listings
This commit is contained in:
parent
1d8997633c
commit
a09196c4ae
4 changed files with 6 additions and 6 deletions
|
@ -88,7 +88,7 @@
|
||||||
<para>
|
<para>
|
||||||
On NixOS you may need to log out and back in for the channel to become
|
On NixOS you may need to log out and back in for the channel to become
|
||||||
available. On non-NixOS you may have to add
|
available. On non-NixOS you may have to add
|
||||||
<programlisting>
|
<programlisting language="bash">
|
||||||
export NIX_PATH=$HOME/.nix-defexpr/channels${NIX_PATH:+:}$NIX_PATH
|
export NIX_PATH=$HOME/.nix-defexpr/channels${NIX_PATH:+:}$NIX_PATH
|
||||||
</programlisting>
|
</programlisting>
|
||||||
to your shell (see
|
to your shell (see
|
||||||
|
@ -113,7 +113,7 @@ export NIX_PATH=$HOME/.nix-defexpr/channels${NIX_PATH:+:}$NIX_PATH
|
||||||
If you do not plan on having Home Manager manage your shell configuration
|
If you do not plan on having Home Manager manage your shell configuration
|
||||||
then you must source the
|
then you must source the
|
||||||
</para>
|
</para>
|
||||||
<programlisting>
|
<programlisting language="bash">
|
||||||
$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh
|
$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh
|
||||||
</programlisting>
|
</programlisting>
|
||||||
<para>
|
<para>
|
||||||
|
|
|
@ -163,7 +163,7 @@ in
|
||||||
Note, these variables may be set in any order so no session
|
Note, these variables may be set in any order so no session
|
||||||
variable may have a runtime dependency on another session
|
variable may have a runtime dependency on another session
|
||||||
variable. In particular code like
|
variable. In particular code like
|
||||||
<programlisting>
|
<programlisting language="nix">
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
FOO = "Hello";
|
FOO = "Hello";
|
||||||
BAR = "$FOO World!";
|
BAR = "$FOO World!";
|
||||||
|
@ -172,7 +172,7 @@ in
|
||||||
may not work as expected. If you need to reference another
|
may not work as expected. If you need to reference another
|
||||||
session variable, then do so inside Nix instead. The above
|
session variable, then do so inside Nix instead. The above
|
||||||
example then becomes
|
example then becomes
|
||||||
<programlisting>
|
<programlisting language="nix">
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
FOO = "Hello";
|
FOO = "Hello";
|
||||||
BAR = "''${config.home.sessionVariables.FOO} World!";
|
BAR = "''${config.home.sessionVariables.FOO} World!";
|
||||||
|
|
|
@ -80,7 +80,7 @@ in
|
||||||
inside and outside Home Manager you can put it in a separate
|
inside and outside Home Manager you can put it in a separate
|
||||||
file and include something like
|
file and include something like
|
||||||
|
|
||||||
<programlisting>
|
<programlisting language="nix">
|
||||||
nixpkgs.config = import ./nixpkgs-config.nix;
|
nixpkgs.config = import ./nixpkgs-config.nix;
|
||||||
xdg.configFile."nixpkgs/config.nix".source =
|
xdg.configFile."nixpkgs/config.nix".source =
|
||||||
./nixpkgs-config.nix;
|
./nixpkgs-config.nix;
|
||||||
|
|
|
@ -174,7 +174,7 @@ in
|
||||||
default = true;
|
default = true;
|
||||||
description = ''
|
description = ''
|
||||||
Enable zsh completion. Don't forget to add
|
Enable zsh completion. Don't forget to add
|
||||||
<programlisting>
|
<programlisting language="nix">
|
||||||
environment.pathsToLink = [ "/share/zsh" ];
|
environment.pathsToLink = [ "/share/zsh" ];
|
||||||
</programlisting>
|
</programlisting>
|
||||||
to your system configuration to get completion for system packages (e.g. systemd).
|
to your system configuration to get completion for system packages (e.g. systemd).
|
||||||
|
|
Loading…
Reference in a new issue