big refactor
This commit is contained in:
commit
76d68230f6
81 changed files with 3065 additions and 0 deletions
24
modules/features/system/boot.nix
Normal file
24
modules/features/system/boot.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ 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 = rec {
|
||||
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
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in a new issue