Skip to content

Commit

Permalink
feat(pkgs): add plymouth catppucin theme
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelroses committed Oct 20, 2023
1 parent da3841b commit f8f06ca
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
- lutgen-rs
- patched-gjs
- ags
- plymouth-theme-catppuccin

steps:
- uses: easimon/maximize-build-space@v8
Expand Down
1 change: 1 addition & 0 deletions flake/pkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ _: {
# https://github.com/NixOS/nixpkgs/issues/195512
lutgen-rs = pkgs.callPackage ./lutgen-rs.nix {};
patched-gjs = pkgs.callPackage ./patched-gjs.nix {};
plymouth-theme-catppuccin = pkgs.callPackage ./plymouth-theme-catppuccin.nix {};

bellado = inputs'.bellado.packages.default;
catppuccinifier-cli = inputs'.catppuccinifier.packages.cli;
Expand Down
33 changes: 33 additions & 0 deletions flake/pkgs/plymouth-theme-catppuccin.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
lib,
pkgs,
stdenvNoCC,
}:
stdenvNoCC.mkDerivation {
pname = "plymouth-theme-catppuccin";
version = "2022-12-10";

src = pkgs.fetchFromGitHub {
owner = "catppuccin";
repo = "plymouth";
rev = "d4105cf336599653783c34c4a2d6ca8c93f9281c";
sha256 = "sha256-quBSH8hx3gD7y1JNWAKQdTk3CmO4t1kVo4cOGbeWlNE=";
};

installPhase = ''
mkdir -p "$out/share/plymouth/themes/"
cp -r "themes/"* "$out/share/plymouth/themes/"
themes=("mocha" "macchiato" "frappe" "latte")
for dir in "''${themes[@]}"; do
cat "themes/catppuccin-''${dir}/catppuccin-''${dir}.plymouth" | sed "s@\/usr\/@''${out}\/@" > "''${out}/share/plymouth/themes/catppuccin-''${dir}/catppuccin-''${dir}.plymouth"
done
'';

meta = with lib; {
description = "Soothing pastel theme for Plymouth";
homepage = "https://github.com/catppuccin/plymouth";
license = licenses.mit;
platforms = platforms.linux;
};
}
3 changes: 2 additions & 1 deletion modules/common/core/system/os/boot/plymouth/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
config,
lib,
self',
pkgs,
...
}: let
Expand All @@ -16,7 +17,7 @@ in {
}
// lib.optionalAttrs cfg.withThemes {
theme = "catppuccin-mocha";
themePackages = [pkgs.nur.repos.nekowinston.plymouth-theme-catppuccin];
themePackages = [self'.packages.plymouth-theme-catppuccin];
};

# make plymouth work with sleep
Expand Down

0 comments on commit f8f06ca

Please sign in to comment.