Milan 1 year ago
parent
commit
3b36a893f7
  1. 1
      .gitignore
  2. 15
      modules/grub2/default.nix

1
.gitignore

@ -0,0 +1 @@
result

15
modules/grub2/default.nix

@ -10,6 +10,7 @@ in {
font = mkOption {
type = types.path;
#default = "${pkgs.dejavu_fonts}/share/fonts/truetype/DejaVuSansMono.ttf";
default = "${pkgs.unifont}/share/fonts/truetype/unifont.ttf";
};
};
@ -20,15 +21,13 @@ in {
type = "payload";
src = "${pkgs.coreboot-payload-grub2}/default_payload.elf";
};
"etc/grub.cfg".src = ./files/grub.cfg;
"etc/background.png".src = ./files/background.png;
"font.pf2" = {
src = pkgs.runCommand "font.pf2" {
"font.pf2".src = (
pkgs.runCommand "font.pf2" {
buildInputs = with pkgs; [ grub2 ];
} ''
grub-mkfont -o $out ${cfg.font}
'';
};
} "grub-mkfont --range=0x20-0x7E,0x2501-0x251F,0x2191-0x2193 --size=14 -o $out ${cfg.font}"
);
"etc/grub.cfg".src = ./files/grub.cfg;
"background.png".src = ./files/background.png;
};
};
}

Loading…
Cancel
Save