From 6704bab2264e6b7af278781c228164d390bba4f4 Mon Sep 17 00:00:00 2001 From: jasmine Date: Fri, 30 Aug 2024 21:59:52 +0800 Subject: [PATCH] limit garbage collection and boot configurations --- nixos/common/global/nix.nix | 2 +- nixos/fuchsia/hardware-configuration.nix | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/nixos/common/global/nix.nix b/nixos/common/global/nix.nix index 22ebea3..af81859 100644 --- a/nixos/common/global/nix.nix +++ b/nixos/common/global/nix.nix @@ -9,7 +9,7 @@ # Automatically run the garbage collector an a specified time. automatic = true; dates = "weekly"; - options = "--delete-older-than 30d"; + options = "--delete-older-than 14d"; }; # This will add each flake input as a registry diff --git a/nixos/fuchsia/hardware-configuration.nix b/nixos/fuchsia/hardware-configuration.nix index 99dcb7a..86906a8 100644 --- a/nixos/fuchsia/hardware-configuration.nix +++ b/nixos/fuchsia/hardware-configuration.nix @@ -35,7 +35,10 @@ efiSysMountPoint = "/boot"; canTouchEfiVariables = true; }; - systemd-boot.enable = true; + systemd-boot = { + enable = true; + configurationLimit = 3; + }; }; };