Limit the number of boot entries

to avoid /boot to go out of disk space.
This commit is contained in:
Hoang Nguyen 2024-02-25 00:00:00 +07:00
parent 52506298a1
commit 338a5d5336
Signed by: folliehiyuki
GPG Key ID: B0567C20730E9B11
2 changed files with 2 additions and 4 deletions

View File

@ -23,10 +23,7 @@
# Being fancy. Other people have already taken care of all the tough setting-up parts :)
boot.plymouth = {
enable = true;
logo = pkgs.fetchurl {
url = "https://github.com/NixOS/nixos-artwork/raw/master/logo/nixos-white.png";
hash = "sha256-2bY//ppmTwtovkdaRIj20tKcxOQPrP2Z2zbjQ+9FWtI=";
};
logo = "${pkgs.nixos-icons}/share/icons/hicolor/72x72/apps/nix-snowflake.png";
};
# Most valuable directories (.e.g /home, /gnu, /nix) are persisted using ZFS datasets.

View File

@ -11,6 +11,7 @@
# Use the systemd-boot EFI boot loader.
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.systemd-boot.enable = true;
boot.loader.systemd-boot.configurationLimit = 10; # prevent /boot to go out of disk space
# Necessary ~~evils~~ binary blobs
# Ref: https://github.com/NixOS/nixos-hardware/tree/master/common/{cpu,gpu}/amd