diff --git a/packages/plymouth-bgrt-apple/default.nix b/packages/plymouth-bgrt-apple/default.nix new file mode 100644 index 0000000..05548aa --- /dev/null +++ b/packages/plymouth-bgrt-apple/default.nix @@ -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; + }; +} \ No newline at end of file diff --git a/systems/aarch64-linux/macbook-pro-nixos/boot.nix b/systems/aarch64-linux/macbook-pro-nixos/boot.nix index f487b14..c2751f5 100644 --- a/systems/aarch64-linux/macbook-pro-nixos/boot.nix +++ b/systems/aarch64-linux/macbook-pro-nixos/boot.nix @@ -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 + ]; + }; }; }