peach: make boot logos seamless

This commit is contained in:
Sean Kovacs 2026-04-04 15:23:42 -04:00
commit 166cb87306
Signed by: sckova
GPG key ID: 00F325187C68651A
5 changed files with 123 additions and 17 deletions

69
flake.lock generated
View file

@ -160,6 +160,24 @@
"type": "github" "type": "github"
} }
}, },
"flake-parts_4": {
"inputs": {
"nixpkgs-lib": "nixpkgs-lib_2"
},
"locked": {
"lastModified": 1769996383,
"narHash": "sha256-AnYjnFWgS49RlqX7LrC4uA+sCCDBj0Ry/WOJ5XWAsa0=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "57928607ea566b5db3ad13af0e57e921e6b12381",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"fromYaml": { "fromYaml": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -314,6 +332,21 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs-lib_2": {
"locked": {
"lastModified": 1769909678,
"narHash": "sha256-cBEymOf4/o3FD5AZnzC3J9hLbiZ+QDT/KDuyHXVJOpM=",
"owner": "nix-community",
"repo": "nixpkgs.lib",
"rev": "72716169fe93074c333e8d0173151350670b824c",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nixpkgs.lib",
"type": "github"
}
},
"nixpkgs-stable": { "nixpkgs-stable": {
"locked": { "locked": {
"lastModified": 1774388614, "lastModified": 1774388614,
@ -362,6 +395,22 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_3": {
"locked": {
"lastModified": 1770115704,
"narHash": "sha256-KHFT9UWOF2yRPlAnSXQJh6uVcgNcWlFqqiAZ7OVlHNc=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "e6eae2ee2110f3d31110d5c222cd395303343b08",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixvim": { "nixvim": {
"inputs": { "inputs": {
"flake-parts": "flake-parts_2", "flake-parts": "flake-parts_2",
@ -483,10 +532,30 @@
"noctalia": "noctalia", "noctalia": "noctalia",
"nur": "nur", "nur": "nur",
"openmw": "openmw", "openmw": "openmw",
"seamless-asahi-plymouth": "seamless-asahi-plymouth",
"sops-nix": "sops-nix", "sops-nix": "sops-nix",
"tt-schemes": "tt-schemes" "tt-schemes": "tt-schemes"
} }
}, },
"seamless-asahi-plymouth": {
"inputs": {
"flake-parts": "flake-parts_4",
"nixpkgs": "nixpkgs_3"
},
"locked": {
"lastModified": 1770365598,
"narHash": "sha256-tjmDL8eaK2NIwWDho81GhygkBZoauiiiUqwV1VP1FwQ=",
"owner": "luca-schlecker",
"repo": "seamless-asahi-plymouth",
"rev": "e3f5517643f9c2021bee2870b55d8bd363763cd1",
"type": "github"
},
"original": {
"owner": "luca-schlecker",
"repo": "seamless-asahi-plymouth",
"type": "github"
}
},
"sops-nix": { "sops-nix": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [

View file

@ -10,6 +10,7 @@
nix-cachyos-kernel.url = "github:xddxdd/nix-cachyos-kernel/release"; nix-cachyos-kernel.url = "github:xddxdd/nix-cachyos-kernel/release";
apple-silicon.url = "github:nix-community/nixos-apple-silicon"; apple-silicon.url = "github:nix-community/nixos-apple-silicon";
seamless-asahi-plymouth.url = "github:luca-schlecker/seamless-asahi-plymouth";
base16.url = "github:SenchoPens/base16.nix"; base16.url = "github:SenchoPens/base16.nix";
tt-schemes = { tt-schemes = {
@ -66,6 +67,7 @@
nixpkgs-unstable, nixpkgs-unstable,
nix-cachyos-kernel, nix-cachyos-kernel,
apple-silicon, apple-silicon,
seamless-asahi-plymouth,
base16, base16,
tt-schemes, tt-schemes,
sops-nix, sops-nix,
@ -250,6 +252,7 @@
peach = mkNixosSystem { peach = mkNixosSystem {
hostname = "peach"; hostname = "peach";
system = "aarch64-linux"; system = "aarch64-linux";
extraSpecialArgs = { inherit seamless-asahi-plymouth; };
extraModules = [ extraModules = [
apple-silicon.nixosModules.default apple-silicon.nixosModules.default
{ nixpkgs.overlays = [ apple-silicon.overlays.apple-silicon-overlay ]; } { nixpkgs.overlays = [ apple-silicon.overlays.apple-silicon-overlay ]; }

View file

@ -22,22 +22,23 @@
plymouth.logo = "${pkgs.nixos-icons}/share/icons/hicolor/64x64/apps/nix-snowflake-white.png"; plymouth.logo = "${pkgs.nixos-icons}/share/icons/hicolor/64x64/apps/nix-snowflake-white.png";
loader = { loader = {
timeout = 3; timeout = 3;
limine = { systemd-boot.enable = true;
enable = true; # limine = {
maxGenerations = 10; # enable = true;
extraConfig = '' # maxGenerations = 10;
timeout: 3 # extraConfig = ''
''; # timeout: 3
style = { # '';
wallpapers = [ ]; # style = {
wallpaperStyle = "stretched"; # wallpapers = [ ];
backdrop = "#1e1e2e"; # wallpaperStyle = "stretched";
interface = { # backdrop = "#1e1e2e";
branding = "kova's nixos!"; # interface = {
brandingColor = 5; # branding = "kova's nixos!";
}; # brandingColor = 5;
}; # };
}; # };
# };
}; };
kernelParams = [ kernelParams = [
"quiet" "quiet"

Binary file not shown.

After

Width:  |  Height:  |  Size: 5 KiB

View file

@ -2,6 +2,7 @@
config, config,
pkgs, pkgs,
lib, lib,
seamless-asahi-plymouth,
... ...
}: }:
let let
@ -13,10 +14,42 @@ let
}; };
in in
{ {
nixpkgs.overlays = [
(final: prev: {
uboot-asahi = prev.uboot-asahi.overrideAttrs (old: {
postConfigure = (old.postConfigure or "") + ''
cat >> .config <<'EOF'
# CONFIG_VIDEO_LOGO is not set
CONFIG_BOOTDELAY=0
CONFIG_SILENT_CONSOLE=y
CONFIG_PREBOOT="setenv silent 1"
EOF
# Regenerate the configuration with new flags
make olddefconfig
'';
});
})
];
boot = { boot = {
kernelParams = [ "appledrm.show_notch=1" ]; kernelParams = [ "appledrm.show_notch=1" ];
# thank you to u/douv:
# https://www.reddit.com/r/AsahiLinux/comments/1sb8cby/retro_boot_logo/
m1n1CustomLogo = "${asahi-artwork}/logos/png_256/AsahiLinux_logomark.png"; m1n1CustomLogo = "${asahi-artwork}/logos/png_256/AsahiLinux_logomark.png";
plymouth.logo = lib.mkForce "${asahi-artwork}/logos/png_64/AsahiLinux_logomark.png"; plymouth = {
enable = true;
theme = "seamless-asahi";
themePackages = [
(seamless-asahi-plymouth.packages.${pkgs.system}.default.override {
logo = "${asahi-artwork}/logos/png_64/AsahiLinux_logomark.png";
})
];
extraConfig = ''
DeviceScale=1
'';
};
}; };
programs.dconf.profiles.gdm.databases = [ programs.dconf.profiles.gdm.databases = [