From e6cd793a74c75f01c48731ed97d55da916fad19a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20Gr=C3=A4fenstein?= Date: Wed, 9 Sep 2020 18:23:34 +0200 Subject: [PATCH] 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. --- nixos/doc/manual/release-notes/rl-2105.xml | 9 +++++++++ nixos/modules/config/system-path.nix | 20 ++++++++++++++------ 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/nixos/doc/manual/release-notes/rl-2105.xml b/nixos/doc/manual/release-notes/rl-2105.xml index b7947293c012..50afeec955d6 100644 --- a/nixos/doc/manual/release-notes/rl-2105.xml +++ b/nixos/doc/manual/release-notes/rl-2105.xml @@ -625,6 +625,15 @@ environment.systemPackages = [ + + + now includes the nano package. + If pkgs.nano is not added to the list, + make sure another editor is installed and the EDITOR + environment variable is set to it. + Environment variables can be set using . + + diff --git a/nixos/modules/config/system-path.nix b/nixos/modules/config/system-path.nix index aee7a041d043..1292c3008c6f 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 pkgs.nano is removed from this list, + make sure another editor is installed and the + EDITOR environment variable is set to it. + Environment variables can be set using + . + + Like with systemPackages, packages are installed to + /run/current-system/sw. 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. ''; };