about summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorBjørn Forsman <bjorn.forsman@gmail.com>2014-06-12 21:18:21 +0200
committerBjørn Forsman <bjorn.forsman@gmail.com>2014-06-12 21:18:21 +0200
commitaff4394be6287b7d553f4eb1b3990c457cd07275 (patch)
tree3a16caf06cec05cf8a8489af5631fd8266851f5c /nixos/modules
parent6cc799b24cad4aabb72c4b1afa06933f2c9e62de (diff)
downloadnixlib-aff4394be6287b7d553f4eb1b3990c457cd07275.tar
nixlib-aff4394be6287b7d553f4eb1b3990c457cd07275.tar.gz
nixlib-aff4394be6287b7d553f4eb1b3990c457cd07275.tar.bz2
nixlib-aff4394be6287b7d553f4eb1b3990c457cd07275.tar.lz
nixlib-aff4394be6287b7d553f4eb1b3990c457cd07275.tar.xz
nixlib-aff4394be6287b7d553f4eb1b3990c457cd07275.tar.zst
nixlib-aff4394be6287b7d553f4eb1b3990c457cd07275.zip
nixos-generate-config: fix nix-env example command
An escape char is needed to prevent "$ nix" from being evaluated and
expanded to an empty string. With this change the resulting text is

  $ nix-env -qaP | grep wget

instead of

  -env -qaP | grep wget
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/installer/tools/nixos-generate-config.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/installer/tools/nixos-generate-config.pl b/nixos/modules/installer/tools/nixos-generate-config.pl
index ab058efc7094..66a8152a3a6c 100644
--- a/nixos/modules/installer/tools/nixos-generate-config.pl
+++ b/nixos/modules/installer/tools/nixos-generate-config.pl
@@ -466,7 +466,7 @@ $bootLoaderConfig
   # };
 
   # List packages installed in system profile. To search by name, run:
-  # $ nix-env -qaP | grep wget
+  # \$ nix-env -qaP | grep wget
   # environment.systemPackages = with pkgs; [
   #   wget
   # ];