fix: move bootloader to grub
This commit is contained in:
parent
9a2feb3a15
commit
d96b0b3bb7
1 changed files with 26 additions and 1 deletions
|
|
@ -11,6 +11,25 @@ let
|
|||
loginShell = pkgs.writeShellScript "login-shell" ''
|
||||
exec $(getent passwd $(id -un) | cut -d: -f7) -l
|
||||
'';
|
||||
grubTheme = pkgs.runCommand "grub-theme" {
|
||||
nativeBuildInputs = [ pkgs.grub2 ];
|
||||
} ''
|
||||
mkdir -p $out
|
||||
grub-mkfont -s 32 -o $out/font.pf2 ${../../fonts/berkeley-mono/BerkeleyMono-Regular.ttf}
|
||||
cat > $out/theme.txt << 'EOF'
|
||||
desktop-color: "#000000"
|
||||
|
||||
+ boot_menu {
|
||||
left = 30%
|
||||
top = 30%
|
||||
width = 40%
|
||||
height = 40%
|
||||
item_color = "#999999"
|
||||
selected_item_color = "#ffffff"
|
||||
icon_width = 0
|
||||
}
|
||||
EOF
|
||||
'';
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
|
|
@ -18,9 +37,15 @@ in
|
|||
./hardware.nix
|
||||
];
|
||||
|
||||
boot.loader.systemd-boot = {
|
||||
boot.loader.grub = {
|
||||
enable = true;
|
||||
efiSupport = true;
|
||||
device = "nodev";
|
||||
useOSProber = true;
|
||||
configurationLimit = 2;
|
||||
theme = grubTheme;
|
||||
font = ../../fonts/berkeley-mono/BerkeleyMono-Regular.ttf;
|
||||
fontSize = 24;
|
||||
};
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.kernelParams = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue