aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilan Pässler <milan@petabyte.dev>2020-11-04 00:28:56 +0100
committerMilan Pässler <milan@petabyte.dev>2020-11-04 00:28:56 +0100
commit53a9f091f8cf9362a95c12130daa1f69ddff036c (patch)
tree7fb90c5c891cee81b5d5da9e5af4706ff4da83f1
parenteb9e6f32d63eb54dcdcfa4891d12f7c07ff246d4 (diff)
grub2: keep default modules for extraPayloadModules
When user sets extraPayloadModules, it should be added on top of the defaults.
-rw-r--r--modules/grub2/default.nix23
1 files changed, 12 insertions, 11 deletions
diff --git a/modules/grub2/default.nix b/modules/grub2/default.nix
index d10833476990..39fa13f73026 100644
--- a/modules/grub2/default.nix
+++ b/modules/grub2/default.nix
@@ -88,22 +88,23 @@ in {
extraPayloadModules = mkOption {
type = types.listOf types.str;
- default = [
- "png"
- "gfxmenu"
- "gfxterm_background"
- "ls"
- "cat"
- "echo"
- "linux"
- "xfs"
- "bsd"
- ];
+ default = [ ];
};
};
config = mkIf cfg.enable {
grub2.configFile = pkgs.writeText "grub.cfg" configText;
+ grub2.extraPayloadModules = [
+ "png"
+ "gfxmenu"
+ "gfxterm_background"
+ "ls"
+ "cat"
+ "echo"
+ "linux"
+ "xfs"
+ "bsd"
+ ];
corenix.extraFiles = {
${payloadName} = {