This repository has been archived on 2026-04-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
AsaJS/modules/features/system/boot.nix
2026-04-14 01:15:18 +07:00

29 lines
656 B
Nix

{
inputs,
pkgs,
libs,
...
}: let
background = libs.root "/assets/grub/background.png";
baseTheme = inputs.honkai-railway-grub-theme.packages.${pkgs.stdenv.hostPlatform.system}.cyrene-grub-theme;
in {
boot = {
loader = {
efi.canTouchEfiVariables = true;
grub = {
enable = true;
device = "nodev";
efiSupport = true;
useOSProber = true;
splashImage = background;
theme = pkgs.runCommand "my-grub-theme" {} ''
mkdir -p $out
cp -r ${baseTheme}/* $out/
chmod -R u+w $out
cp ${background} $out/background.png
'';
};
};
};
}