NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
16.59k stars 13.07k forks source link

boot.loader.grub.configurationLimit doesn't work as expected #128956

Open psibi opened 3 years ago

psibi commented 3 years ago

Describe the bug

I have the following configuration in my configuration.nix:

  boot.loader.grub.configurationLimit = 25;

And with some nixos-rebuild switch, I have exceeded more than 30 entries currently.

To Reproduce

Steps to reproduce the behavior:

  1. Set a boot.loader.grub.configurationLimit to an arbitrary number. (Probably close to your current number of entries)
  2. Do some nixos-rebuild switch and your entries would be more than the limit you have specificed.

Expected behavior

It should be exactly having the n menu entries in grub where n is the specified value for boot.loader.grub.configurationLimit.

Notify maintainers

@rnhmjoj (Pretty sure I'm pinging the wrong person here)

Metadata

nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.10.40, NixOS, 21.05.876.60cce7e5e1f (Okapi)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.12`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:
stale[bot] commented 2 years ago

I marked this as stale due to inactivity. → More info