38 lines
965 B
Nix
38 lines
965 B
Nix
{ lib, config, pkgs,... }:
|
|
let
|
|
customGrubTheme = pkgs.minimal-grub-theme.overrideAttrs (oldAttrs: rec {
|
|
# srcs = oldAttrs.srcs or [ ] ++ [ ../var/icon.png ];
|
|
|
|
installPhase = let
|
|
originalInstall = oldAttrs.installPhase or ''
|
|
mkdir -p $out
|
|
'';
|
|
in ''
|
|
${originalInstall}
|
|
# Copy the custom icon to $out (e.g., next to other theme files)
|
|
cp ${../var/icon.png} $out/icons/installer.png
|
|
'';
|
|
});
|
|
in
|
|
{
|
|
stylix = {
|
|
enable = true;
|
|
autoEnable = true;
|
|
polarity = "dark";
|
|
image = ../var/wallpaper.png;
|
|
targets.console.enable = false;
|
|
};
|
|
|
|
system.nixos = {
|
|
distroName = lib.mkForce "Aberrant Linux";
|
|
};
|
|
|
|
isoImage = {
|
|
appendToMenuLabel = " LiveCD";
|
|
grubTheme = customGrubTheme;
|
|
};
|
|
|
|
image.baseName = lib.mkForce "aberrant${
|
|
lib.optionalString (config.isoImage.edition != "") "-${config.isoImage.edition}"
|
|
}-${config.system.nixos.label}-${pkgs.stdenv.hostPlatform.system}";
|
|
}
|