move options back out to their config files, improve documentation
This commit is contained in:
30 files changed
+344
-233
No files matched your search
@@ -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}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -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)}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user