plymouth apple
This commit is contained in:
41
packages/plymouth-bgrt-apple/default.nix
Normal file
41
packages/plymouth-bgrt-apple/default.nix
Normal file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
unstableGitUpdater,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "nixos-bgrt-plymouth";
|
||||
version = "20260209";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
repo = "plymouth-theme-nixos-bgrt";
|
||||
owner = "mjallen18";
|
||||
rev = "80a28fa8c294f21a6afb254dba88f5fc0668f125";
|
||||
hash = "sha256-cgYptvyD19xNjQBCJn8c77e1OZGrKvLVgJ+sW1vQxUM=";
|
||||
};
|
||||
|
||||
dontConfigure = true;
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/plymouth/themes/nixos-bgrt-apple
|
||||
cp -r $src/{*.plymouth,images} $out/share/plymouth/themes/nixos-bgrt-apple/
|
||||
substituteInPlace $out/share/plymouth/themes/nixos-bgrt-apple/*.plymouth --replace '@IMAGES@' "$out/share/plymouth/themes/nixos-bgrt-apple/images"
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
passthru.updateScript = unstableGitUpdater { };
|
||||
|
||||
meta = {
|
||||
description = "BGRT theme with a spinning NixOS logo for MacBooks";
|
||||
homepage = "https://github.com/mjallen18/plymouth-theme-nixos-bgrt";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ ];
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
{ lib, ... }:
|
||||
{ lib, pkgs, namespace, ... }:
|
||||
{
|
||||
# Use the systemd-boot EFI boot loader.
|
||||
boot = {
|
||||
@@ -32,5 +32,12 @@
|
||||
supportedFilesystems = {
|
||||
apfs = lib.mkForce true;
|
||||
};
|
||||
|
||||
plymouth = {
|
||||
theme = "nixos-bgrt-apple";
|
||||
themePackages = with pkgs.${namespace}; [
|
||||
plymouth-bgrt-apple
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user