diff --git a/hosts/curve/default.nix b/hosts/curve/default.nix index 0508ca9d..888cf817 100644 --- a/hosts/curve/default.nix +++ b/hosts/curve/default.nix @@ -30,6 +30,11 @@ }; boot.supportedFilesystems = [ "ntfs" ]; + boot.plymouth = { + enable = true; + themePackages = [ pkgs.plymouth-themes ]; + theme = "motion"; + }; # lazy enable of ports necessary for KDE connect which is installed via cli home profile (for some reason?) networking.firewall = { diff --git a/pkgs/default.nix b/pkgs/default.nix index 924a2300..39eb7c9b 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -2,4 +2,5 @@ final: prev: { # keep sources this first sources = prev.callPackage (import ./_sources/generated.nix) { }; # then, call packages with `final.callPackage` + plymouth-themes = prev.callPackage ./plymouth.nix { }; } diff --git a/pkgs/plymouth.nix b/pkgs/plymouth.nix new file mode 100644 index 00000000..6b74a302 --- /dev/null +++ b/pkgs/plymouth.nix @@ -0,0 +1,31 @@ +{ pkgs, ... }: +pkgs.stdenv.mkDerivation rec { + pname = "plymouth-themes"; + version = "bf2f570bee8e84c5c20caac353cbe1d811a4745f"; + + src = pkgs.fetchGit { + url = "https://github.com/adi1090x/plymouth-themes"; + rev = "bf2f570bee8e84c5c20caac353cbe1d811a4745f"; + sha256 = ""; + }; + + buildInputs = [ + pkgs.git + ]; + + configurePhase = '' + mkdir -p $out/share/plymouth/themes/ + ''; + + buildPhase = '' + ''; + + installPhase = '' + cp -r pack_3/lone $out/share/plymouth/themes + cat pack_3/lone/lone.plymouth | sed "s@\/usr\/@$out\/@" > $out/share/plymouth/themes/lone/lone.plymouth + cat pack_3/motion/motion.plymouth | sed "s@\/usr\/@$out\/@" > $out/share/plymouth/themes/lone/lone.plymouth + cat pack_1/colorful_sliced/colorful_sliced.plymouth | sed "s@\/usr\/@$out\/@" > $out/share/plymouth/themes/lone/lone.plymouth + cat pack_2/hexagon_2/hexagon_2.plymouth | sed "s@\/usr\/@$out\/@" > $out/share/plymouth/themes/lone/lone.plymouth + cat pack_2/hexagon_dots_alt/hexagon_dots_alt.plymouth | sed "s@\/usr\/@$out\/@" > $out/share/plymouth/themes/lone/lone.plymouth + ''; +}