move options back out to their config files, improve documentation

This commit is contained in:
greyweather committed 2026-09-02 00:05:28 +01:00
1 parent 70ac7954ad
commit 9c13923c2e
30 files changed
+344 -233

No files matched your search

+5 -1
View File
@@ -1,8 +1,12 @@
{ inputs, self, ... }: {
flake.nixosModules.global = { pkgs, config, lib, ... }: {
boot.loader.grub = lib.mkIf (config.components.bootLoader == "grub") {
boot.loader.grub = lib.mkIf (config.components.bootLoader.selection == "grub") {
enable = true;
useOSProber = true;
configurationLimit = config.components.bootLoader.maxGenerations;
extraConfig = ''
timeout ${config.components.bootLoader.timeout}
'';
};
};
}
+5 -2
View File
@@ -1,8 +1,11 @@
{ inputs, self, ... }: {
flake.nixosModules.global = { pkgs, config, lib, ... }: {
boot.loader.limine = lib.mkIf (config.components.bootLoader == "limine") {
boot.loader.limine = lib.mkIf (config.components.bootLoader.selection == "limine") {
enable = true;
maxGenerations = 10;
maxGenerations = config.components.bootLoader.maxGenerations;
extraConfig = ''
timeout: ${if config.components.bootLoader.timeout == -1 then "no" else builtins.toString (config.components.bootLoader.timeout)}
'';
};
};
}