summary refs log tree commit diff
path: root/nixos/modules/config
diff options
context:
space:
mode:
authorSamuel Gräfenstein <git@samuelgrf.com>2020-09-09 18:23:34 +0200
committerSamuel Gräfenstein <git@samuelgrf.com>2021-03-30 11:50:03 +0200
commite6cd793a74c75f01c48731ed97d55da916fad19a (patch)
tree9cd1bc9aa615c5f43d4f6635aefbb54882e943cc /nixos/modules/config
parent857c9ace86e313270415629040136a8442e0607b (diff)
downloadnixpkgs-e6cd793a74c75f01c48731ed97d55da916fad19a.tar
nixpkgs-e6cd793a74c75f01c48731ed97d55da916fad19a.tar.gz
nixpkgs-e6cd793a74c75f01c48731ed97d55da916fad19a.tar.bz2
nixpkgs-e6cd793a74c75f01c48731ed97d55da916fad19a.tar.lz
nixpkgs-e6cd793a74c75f01c48731ed97d55da916fad19a.tar.xz
nixpkgs-e6cd793a74c75f01c48731ed97d55da916fad19a.tar.zst
nixpkgs-e6cd793a74c75f01c48731ed97d55da916fad19a.zip
nixos/config: move nano to defaultPackages
Some people already have another editor installed and may want to
get rid of applications they don't use.
Diffstat (limited to 'nixos/modules/config')
-rw-r--r--nixos/modules/config/system-path.nix20
1 files changed, 14 insertions, 6 deletions
diff --git a/nixos/modules/config/system-path.nix b/nixos/modules/config/system-path.nix
index aee7a041d04..1292c3008c6 100644
--- a/nixos/modules/config/system-path.nix
+++ b/nixos/modules/config/system-path.nix
@@ -29,7 +29,6 @@ let
       pkgs.xz
       pkgs.less
       pkgs.libcap
-      pkgs.nano
       pkgs.ncurses
       pkgs.netcat
       config.programs.ssh.package
@@ -43,7 +42,8 @@ let
     ];
 
     defaultPackages = map (pkg: setPrio ((pkg.meta.priority or 5) + 3) pkg)
-      [ pkgs.perl
+      [ pkgs.nano
+        pkgs.perl
         pkgs.rsync
         pkgs.strace
       ];
@@ -75,13 +75,21 @@ in
         default = defaultPackages;
         example = literalExample "[]";
         description = ''
-          Set of packages users expect from a minimal linux istall.
-          Like systemPackages, they appear in
-          /run/current-system/sw.  These packages are
+          Set of default packages that aren't strictly neccessary
+          for a running system, entries can be removed for a more
+          minimal NixOS installation.
+
+          Note: If <package>pkgs.nano</package> is removed from this list,
+          make sure another editor is installed and the
+          <literal>EDITOR</literal> environment variable is set to it.
+          Environment variables can be set using
+          <option>environment.variables</option>.
+
+          Like with systemPackages, packages are installed to
+          <filename>/run/current-system/sw</filename>. They are
           automatically available to all users, and are
           automatically updated every time you rebuild the system
           configuration.
-          If you want a more minimal system, set it to an empty list.
         '';
       };