bootloader on laptop
This commit is contained in:
parent
cb44e16d76
commit
d9121053ec
4 changed files with 55 additions and 47 deletions
|
|
@ -1,9 +1,53 @@
|
|||
{
|
||||
config,
|
||||
scope,
|
||||
machineName,
|
||||
mainUser,
|
||||
...
|
||||
}:
|
||||
scope "boot" {
|
||||
tmp.useTmpfs = true;
|
||||
initrd.systemd.enable = true;
|
||||
|
||||
loader.limine = {
|
||||
enable = true;
|
||||
style =
|
||||
let
|
||||
pal = config.rice.palette.shortHex;
|
||||
in
|
||||
{
|
||||
wallpapers = [ config.rice.bg.src ];
|
||||
interface = {
|
||||
brandingColor = 1;
|
||||
branding = "hello ${mainUser}. welcome to ${machineName}";
|
||||
};
|
||||
graphicalTerminal =
|
||||
let
|
||||
getPal = p: builtins.attrValues p |> builtins.concatStringsSep ";";
|
||||
in
|
||||
{
|
||||
palette = getPal pal.normal;
|
||||
brightPalette = getPal pal.bright;
|
||||
marginGradient = 0;
|
||||
margin = 256;
|
||||
foreground = pal.util.fg;
|
||||
background = "20" + pal.util.bg;
|
||||
brightForeground = pal.bright.yellow;
|
||||
brightBackground = pal.util.bg;
|
||||
};
|
||||
backdrop = pal.util.bg;
|
||||
};
|
||||
maxGenerations = 5;
|
||||
};
|
||||
plymouth = {
|
||||
enable = true;
|
||||
# theme needs fixing
|
||||
# inherit (config.rice.plymouth) theme themePackages font;
|
||||
};
|
||||
|
||||
loader.limine.extraEntries = ''
|
||||
/Windows
|
||||
protocol: efi
|
||||
path: boot():/EFI/Microsoft/Boot/bootmgfw.efi
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue