Commit c910a65

HPCesia <me@hpcesia.com>
2026-07-13 12:34:12
Fix too many boot entry
1 parent 9f4f58a
Changed files (3)
modules
core
hosts
roles
modules/core/boot.nix
@@ -0,0 +1,12 @@
+{lib, ...}: {
+  den.aspects.core.boot = {
+    nixos = {
+      boot.loader = {
+        # Don't need to keep too many generations when using Git for version control.
+        systemd-boot.configurationLimit = lib.mkDefault 10;
+        # pick the highest resolution for systemd-boot's console.
+        systemd-boot.consoleMode = lib.mkDefault "max";
+      };
+    };
+  };
+}
modules/hosts/kevin/hardware.nix
@@ -18,10 +18,7 @@
       hardware.facter.reportPath = ./facter.json;
 
       boot.loader = {
-        systemd-boot = {
-          enable = true;
-          consoleMode = "auto";
-        };
+        systemd-boot.enable = true;
       };
     };
 
modules/roles/default.nix
@@ -19,6 +19,7 @@
       core.shell.atuin
       core.shell.starship
 
+      core.boot
       core.editor
       core.impermanence
       core.localization