updates
This commit is contained in:
parent
5546b4cbe9
commit
03130d29d1
13 changed files with 572 additions and 0 deletions
38
modules/branding.nix
Normal file
38
modules/branding.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{ 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}";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue