Regenerated

This commit is contained in:
2026-03-24 11:17:26 +00:00
parent 6bd68a8320
commit f9afc57587
21 changed files with 3 additions and 846 deletions
+3 -41
View File
@@ -230,46 +230,14 @@ in
#+BEGIN_SRC nix :tangle generated/hosts/traveldroid/boot.nix :noweb tangle :mkdirp yes :eval never-html
{ config, pkgs, lib, flakeRoot, ... }:
let
hostname = config.networking.hostName or "traveldroid";
# GRUB theme derivation
grubTheme = pkgs.stdenv.mkDerivation {
name = "droidnix-grub-theme";
src = "${flakeRoot}/assets/traveldroid/theming/boot";
installPhase = ''
mkdir -p $out
cp theme.txt $out/theme.txt
cp background.png $out/
'';
};
in
{
#################################
# Bootloader (UEFI + GRUB)
#################################
boot.loader = {
efi = {
canTouchEfiVariables = false; # must be false if using efiInstallAsRemovable
efiSysMountPoint = "/boot";
};
grub = {
enable = true;
efiSupport = true;
efiInstallAsRemovable = true;
devices = [ "nodev" ]; # for UEFI-only installation
useOSProber = true;
configurationLimit = 25;
theme = grubTheme;
};
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
efi.efiSysMountPoint = "/boot";
timeout = 5;
};
#################################
# Kernel / initrd
#################################
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.kernelParams = [
@@ -290,9 +258,6 @@ in
];
boot.kernelModules = [ "kvm-intel" ];
#################################
# Plymouth
#################################
boot.plymouth = {
enable = true;
theme = "rings";
@@ -303,9 +268,6 @@ in
];
};
#################################
# CPU / platform
#################################
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}