diff --git a/core/display.nix b/core/display.nix index 029b6ae..eb490f8 100755 --- a/core/display.nix +++ b/core/display.nix @@ -1,5 +1,11 @@ { inputs, pkgs, label, lib, niri, ... }: +let + + sygil-plymouth = import ../home/resources/theme/sygil-plymouth.nix { inherit pkgs; }; + +in + { system = { @@ -43,12 +49,13 @@ plymouth = { # enables plymouth boot animations enable = false; extraConfig = "ShowDelay=0"; - theme = "circle"; - themePackages = with pkgs; [ - (adi1090x-plymouth-themes.override { - selected_themes = [ "circle" ]; - }) - ]; + theme = "sygil-plymouth"; + themePackages = sygil-plymouth; + #themePackages = with pkgs; [ + #(adi1090x-plymouth-themes.override { + #selected_themes = [ "circle" ]; + #}) + #]; }; }; diff --git a/home/resources/theme/sygil-plymouth.nix b/home/resources/theme/sygil-plymouth.nix new file mode 100644 index 0000000..3038b3b --- /dev/null +++ b/home/resources/theme/sygil-plymouth.nix @@ -0,0 +1,42 @@ +{ + stdenvNoCC, + fetchFromGitea, + lib, + unstableGitUpdater, +}: + +stdenvNoCC.mkDerivation { + name = "plymouth-sygil-theme"; + version = "0.2.0"; + + src = fetchFromGitea { + domain = "codeberg.org"; + owner = "Serenity-F"; + repo = "sygil-plymouth"; + rev = "0.2.0"; + hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="; + }; + + dontBuild = true; + + installPhase = '' + runHook preInstall + mkdir -p $out/share/plymouth/themes/sygil + cp sygil/* $out/share/plymouth/themes/sygil + chmod +x $out/share/plymouth/themes/sygil/sygil.plymouth + substituteInPlace $out/share/plymouth/themes/sygil/sygil.plymouth \ + --replace-fail "/usr/" "$out/" + runHook postInstall + ''; + + passthru.updateScript = unstableGitUpdater { }; + + meta = { + description = "Animated sygil Plymouth theme."; + homepage = "https://codeberg.org/Serenity-F/sygil-plymouth"; + license = with lib.licenses; [ gpl3Only ]; + platforms = lib.platforms.linux; + maintainers = with lib.maintainers; [ Serenity-F ]; + }; + +}