Regenerated

This commit is contained in:
2026-03-24 08:15:04 +00:00
parent e919b6b0cc
commit 40613a9eb6
20 changed files with 20 additions and 730 deletions
+20 -25
View File
@@ -225,8 +225,22 @@ in
let
hostname = config.networking.hostName or "traveldroid";
# Asset paths
themeSrc = "${flakeRoot}/assets/traveldroid/theming/boot";
# Build GRUB theme from your assets
grubTheme = pkgs.stdenv.mkDerivation {
name = "droidnix-grub-theme";
src = "${flakeRoot}/assets/traveldroid/theming/boot";
installPhase = ''
mkdir -p $out
# GRUB expects this exact name
cp theming.txt $out/theme.txt
# Assets
cp background.png $out/
'';
};
in
{
#################################
@@ -244,31 +258,16 @@ in
device = "nodev";
useOSProber = true;
# 🔥 IMPORTANT for menu updates
# Keep multiple generations (fixes menu issue)
configurationLimit = 10;
# Theme + background
splashImage = "/boot/grub/themes/droidnix/background.png";
extraConfig = ''
set theme=/boot/grub/themes/droidnix/theme.txt
'';
# ✅ Fully declarative theme
theme = grubTheme;
};
timeout = 5;
};
#################################
# Copy GRUB theme assets
#################################
environment.etc = {
# Copy theme into /boot (via activation)
"grub/themes/droidnix/background.png".source =
"${themeSrc}/background.png";
"grub/themes/droidnix/theme.txt".source =
"${themeSrc}/theming.txt";
};
#################################
# Kernel / initrd
#################################
@@ -284,6 +283,7 @@ in
boot.consoleLogLevel = 0;
boot.initrd.systemd.enable = true;
boot.initrd.availableKernelModules = [
"xhci_pci"
"nvme"
@@ -314,11 +314,6 @@ in
lib.mkDefault config.hardware.enableRedistributableFirmware;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
#################################
# State version
#################################
system.stateVersion = "26.05";
}
#+END_SRC