mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2026-05-08 07:06:13 +08:00
feat: write nixos module for own plymouth theme
This commit is contained in:
parent
e29f70d08e
commit
06ad0a7561
1 changed files with 40 additions and 0 deletions
40
pkgs/nixos-centered-plymouth/default.nix
Normal file
40
pkgs/nixos-centered-plymouth/default.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchgit,
|
||||
unstableGitUpdater,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "nixos-centered-plymouth";
|
||||
version = "2026-04-28";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://code.liv.town/liv/nixos-centered-plymouth";
|
||||
rev = "d7c01ff3ca1da939ca9a8b7d72ed1a63ecc1638f";
|
||||
hash = "sha256-2bC3OrlYdAlYFF0pZYULt25IJVY0w04meaYnDksd7sI=";
|
||||
};
|
||||
|
||||
dontConfigure = true;
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/plymouth/themes/nixos-centered
|
||||
cp -r $src/{*.plymouth,images} $out/share/plymouth/themes/nixos-centered/
|
||||
substituteInPlace $out/share/plymouth/themes/nixos-centered/*.plymouth --replace '@IMAGES@' "$out/share/plymouth/themes/nixos-centered/images"
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
passthru.updateScript = unstableGitUpdater { };
|
||||
|
||||
meta = {
|
||||
description = "Centered and coloured NixOS Plymouth theme";
|
||||
homepage = "https://code.liv.town/liv/nixos-centered-plymouth";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ ];
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue