boot: use upstream plymouth themes package

This commit is contained in:
lelgenio 2023-08-31 16:22:55 -03:00
parent 55d5178bb6
commit 3548de8d33
3 changed files with 4 additions and 28 deletions

View file

@ -2,7 +2,6 @@
# You can build them using 'nix build .#example' or (legacy) 'nix-build -A example'
{ pkgs, inputs }: {
plymouth-theme-red = pkgs.callPackage ./plymouth-theme-red.nix { inherit inputs; };
cargo-checkmate = pkgs.callPackage ./cargo-checkmate.nix { };
lipsum = pkgs.callPackage ./lipsum.nix { inherit inputs; };
emmet-cli = pkgs.callPackage ./emmet-cli.nix { };

View file

@ -1,25 +0,0 @@
{ pkgs, inputs }:
pkgs.stdenv.mkDerivation rec {
pname = "red-loader-plymouth";
version = "0.0.1";
src = inputs.plymouth-themes;
buildInputs = [
pkgs.git
];
configurePhase = ''
mkdir -p $out/share/plymouth/themes/
'';
buildPhase = ''
'';
installPhase = ''
cp -r pack_4/red_loader $out/share/plymouth/themes
cat pack_4/red_loader/red_loader.plymouth | sed "s@\/usr\/@$out\/@" > \
$out/share/plymouth/themes/red_loader/red_loader.plymouth
'';
}

View file

@ -37,8 +37,10 @@
plymouth = {
enable = true;
theme = lib.mkIf (pkgs.uservars.desktop == "sway") "red_loader";
themePackages = [
pkgs.plymouth-theme-red
themePackages = with pkgs; [
(adi1090x-plymouth-themes.override {
selected_themes = [ "red_loader" ];
})
];
};
};