aboutsummaryrefslogtreecommitdiff
path: root/nixos/modules/system
diff options
context:
space:
mode:
authorDomen Kožar <domen@dev.si>2019-07-23 10:19:17 +0200
committerDomen Kožar <domen@dev.si>2019-07-23 10:20:09 +0200
commitcfd507d581815ae6b99ef9565ed9c4d52b402af8 (patch)
tree84e75034b332623a303bdd603544ae770db8b491 /nixos/modules/system
parente765dde91096854a872ded32566ad242280c12cf (diff)
system-boot: configurationLimit should be null as default
Diffstat (limited to 'nixos/modules/system')
-rw-r--r--nixos/modules/system/boot/loader/systemd-boot/systemd-boot.nix15
1 files changed, 10 insertions, 5 deletions
diff --git a/nixos/modules/system/boot/loader/systemd-boot/systemd-boot.nix b/nixos/modules/system/boot/loader/systemd-boot/systemd-boot.nix
index 910a602c61d..22d459ceb04 100644
--- a/nixos/modules/system/boot/loader/systemd-boot/systemd-boot.nix
+++ b/nixos/modules/system/boot/loader/systemd-boot/systemd-boot.nix
@@ -22,7 +22,9 @@ let
editor = if cfg.editor then "True" else "False";
- inherit (cfg) consoleMode configurationLimit;
+ configurationLimit = if cfg.configurationLimit == null then 0 else cfg.configurationLimit;
+
+ inherit (cfg) consoleMode;
inherit (efi) efiSysMountPoint canTouchEfiVariables;
@@ -58,12 +60,15 @@ in {
};
configurationLimit = mkOption {
- default = 100;
+ default = null;
example = 120;
- type = types.int;
+ type = types.nullOr types.int;
description = ''
- Maximum of configurations in boot menu. Otherwise boot partition could
- run out of disk space.
+ Maximum number of latest generations in the boot menu.
+ Useful to prevent boot partition running out of disk space.
+
+ <literal>null</literal> means no limit i.e. all generations
+ that were not garbage collected yet.
'';
};