diff --git a/core/packages.nix b/core/packages.nix index 983179d..afbecc8 100755 --- a/core/packages.nix +++ b/core/packages.nix @@ -24,19 +24,25 @@ allowUnfree = true; ## Place insecure packages here permittedInsecurePackages = [ "olm-3.2.16" ]; + ## Overrides + packageOverrides = pkgs: { + sygil-plymouth = pkgs.callPackage /home/serenity/repos/sygil-plymouth-nixpkg/package.nix { }; + }; }; - ## Overlays - BROKEN FOR NOW + + ## Overlays overlays = [ niri.overlays.niri ## to use overlays exported from other flakes: #neovim-nightly-overlay.overlays.default ## or define it inline, for example: #(final: prev: { - #hi = final.hello.overrideAttrs (oldAttrs: { - #patches = [ ./change-hello-to-hi.patch ]; - #}); + #hi = final.hello.overrideAttrs (oldAttrs: { + #patches = [ ./change-hello-to-hi.patch ]; + #}); #}) ]; + }; ## Nix settings for package related stuff diff --git a/home/resources/themes/sygil-plymouth.nix b/home/resources/themes/sygil-plymouth.nix new file mode 100644 index 0000000..e114f12 --- /dev/null +++ b/home/resources/themes/sygil-plymouth.nix @@ -0,0 +1,38 @@ +{ + stdenvNoCC, + fetchurl, + lib, +}: + +stdenvNoCC.mkDerivation rec { + name = "plymouth-sygol-sigil-theme"; + version = "0.0.1"; + + src = fetchurl { + url = "https://codeberg.org/serenity-F/sygil-plymouth/archive/snecodn.tar.gz"; + sha256 = "sha256-MC88q4HvY26FMdRVKrky3WXKHlpMCfNqJwyzcU81Jk8="; + }; + + dontBuild = true; + + installPhase = '' + runHook preInstall + mkdir -p $out/share/plymouth/themes/sygil + cp sygil/* $out/share/plymouth/themes/sygil + substituteInPlace $out/share/plymouth/themes/sygil/sygil.plymouth \ + --replace-fail "/usr/" "$out/" + runHook postInstall + ''; + + meta = { + description = "Animated Plymouth boot theme with the Sygol sigil."; + longDescription = '' + Animated Plymouth theme with the Sygol sigil. + Disk encryption password prompt is supported. + ''; + homepage = "https://codeberg.org/serenity-F/sygil-plymouth"; + license = lib.licenses.gpl2Only; + platforms = lib.platforms.linux; + maintainers = with lib.maintainers; [ serenity-f ]; + }; +}