git.iko.soy/typeable/nixpkgs
on master help sign in
system-boot: configurationLimit should be null as default
commitcfd507d581815ae6b99ef9565ed9c4d52b402af8 authorDomen Kožar <domen@dev.si> dateTue 23 Jul 2019, 10:19 (7 years ago) parente765dde
1 file changed+10−5
nixos/modules/system/boot/loader/systemd-boot/systemd-boot.nix+10−5
nixos/modules/system/boot/loader/systemd-boot/systemd-boot.nix+10−5
@@ -22,7 +22,9 @@ let
2222
2323 editor = if cfg.editor then "True" else "False";
2424
25− inherit (cfg) consoleMode configurationLimit;
25+ configurationLimit = if cfg.configurationLimit == null then 0 else cfg.configurationLimit;
26+
27+ inherit (cfg) consoleMode;
2628
2729 inherit (efi) efiSysMountPoint canTouchEfiVariables;
2830
@@ -58,12 +60,15 @@ in {
5860 };
5961
6062 configurationLimit = mkOption {
61− default = 100;
63+ default = null;
6264 example = 120;
63− type = types.int;
65+ type = types.nullOr types.int;
6466 description = ''
65− Maximum of configurations in boot menu. Otherwise boot partition could
66− run out of disk space.
67+ Maximum number of latest generations in the boot menu.
68+ Useful to prevent boot partition running out of disk space.
69+
70+ <literal>null</literal> means no limit i.e. all generations
71+ that were not garbage collected yet.
6772 '';
6873 };
6974