Skip to content

Minimise/remove environment.defaultPackages #263289

@l0b0

Description

@l0b0

Issue description

I can understand that environment.defaultPackages includes a text editor to make sure there is always at least one (no longer the case in 23.11)

Why does environment.defaultPackages include perl, rsync, and strace? I've used all of them at some point, but they don't seem important enough to be installed on every single NixOS system.

And if they are all removed, should the environment.defaultPackages option itself be removed? The only place it's currently used outside of tests is in the installer, which could presumably use systemPackages instead.

For the record, environment.defaultPackages = lib.mkForce []; should not be necessary as a workaround.

Steps to reproduce

  1. Install NixOS 😁

Technical details

  • system: "x86_64-linux"
  • host os: Linux 6.1.59, NixOS, 23.05 (Stoat), 23.05.4448.5550a85a087c
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.13.6
  • channels(root): "nixos-23.05, nixos-hardware"
  • channels(username): ""
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

Metadata

Metadata

Assignees

No one assigned

    Labels

    2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions