diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2020-09-23 00:38:47 +0200 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2020-09-23 01:25:25 +0200 |
commit | e6ce041caef09405283081a8b5c5412153eccc85 (patch) | |
tree | 048f15ef23b9a4ab1d7741cfb64f7c355753c082 /nixos/modules | |
parent | e1af37634b387e18361f15b2db1c7f7f93d37ebc (diff) | |
download | nixpkgs-e6ce041caef09405283081a8b5c5412153eccc85.tar nixpkgs-e6ce041caef09405283081a8b5c5412153eccc85.tar.gz nixpkgs-e6ce041caef09405283081a8b5c5412153eccc85.tar.bz2 nixpkgs-e6ce041caef09405283081a8b5c5412153eccc85.tar.lz nixpkgs-e6ce041caef09405283081a8b5c5412153eccc85.tar.xz nixpkgs-e6ce041caef09405283081a8b5c5412153eccc85.tar.zst nixpkgs-e6ce041caef09405283081a8b5c5412153eccc85.zip |
nixos/doc: Improve code listings
By adding prompts and replaceables and removing unnecessary indentation.
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/services/backup/borgbackup.xml | 8 | ||||
-rw-r--r-- | nixos/modules/system/activation/top-level.nix | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/nixos/modules/services/backup/borgbackup.xml b/nixos/modules/services/backup/borgbackup.xml index a197f38ffb9..8f623c93656 100644 --- a/nixos/modules/services/backup/borgbackup.xml +++ b/nixos/modules/services/backup/borgbackup.xml @@ -69,10 +69,10 @@ access this single repository. You need the output of the generate pub file. </para> <para> - <programlisting> -# sudo ssh-keygen -N '' -t ed25519 -f /run/keys/id_ed25519_my_borg_repo -# cat /run/keys/id_ed25519_my_borg_repo -ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID78zmOyA+5uPG4Ot0hfAy+sLDPU1L4AiIoRYEIVbbQ/ root@nixos</programlisting> +<screen> +<prompt># </prompt>sudo ssh-keygen -N '' -t ed25519 -f /run/keys/id_ed25519_my_borg_repo +<prompt># </prompt>cat /run/keys/id_ed25519_my_borg_repo +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID78zmOyA+5uPG4Ot0hfAy+sLDPU1L4AiIoRYEIVbbQ/ root@nixos</screen> </para> <para> Add the following snippet to your NixOS configuration: diff --git a/nixos/modules/system/activation/top-level.nix b/nixos/modules/system/activation/top-level.nix index fb8644dd13a..2724d9f9cb6 100644 --- a/nixos/modules/system/activation/top-level.nix +++ b/nixos/modules/system/activation/top-level.nix @@ -159,9 +159,9 @@ in To switch to a specialised configuration (e.g. <literal>fewJobsManyCores</literal>) at runtime, run: - <programlisting> - # sudo /run/current-system/specialisation/fewJobsManyCores/bin/switch-to-configuration test - </programlisting> + <screen> + <prompt># </prompt>sudo /run/current-system/specialisation/fewJobsManyCores/bin/switch-to-configuration test + </screen> ''; type = types.attrsOf (types.submodule ( { ... }: { |