big refactor

This commit is contained in:
Asaki Yuki 2026-04-09 10:36:32 +07:00
commit 76d68230f6
81 changed files with 3065 additions and 0 deletions

View 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
'';
};
};
};
}