diff --git a/default.nix b/default.nix index ad35e6f..3b9092a 100644 --- a/default.nix +++ b/default.nix @@ -27,6 +27,7 @@ rec { ripgrep-all = pkgs.callPackage ./pkgs/ripgrep-all { inherit (pkgs.darwin.apple_sdk.frameworks) Security; }; + sddm-theme-utah = pkgs.callPackage ./pkgs/sddm-theme-utah { }; thumbs = pkgs.callPackage ./pkgs/thumbs { }; tmux-thumbs = pkgs.callPackage ./pkgs/tmux-thumbs { inherit (pkgs.tmuxPlugins) mkTmuxPlugin; diff --git a/pkgs/sddm-theme-utah/default.nix b/pkgs/sddm-theme-utah/default.nix new file mode 100644 index 0000000..0ffbe47 --- /dev/null +++ b/pkgs/sddm-theme-utah/default.nix @@ -0,0 +1,27 @@ +{ lib, stdenv, fetchurl, plasma-workspace }: +stdenv.mkDerivation { + pname = "sddm-theme-utah"; + version = "1.0"; + + dontBuild = true; + dontUnpack = true; + installPhase = '' + mkdir -p $out/share/sddm/themes/ + cp -aR ${plasma-workspace}/share/sddm/themes/breeze $out/share/sddm/themes/sddm-theme-custom + chmod +w $out/share/sddm/themes/sddm-theme-custom $out/share/sddm/themes/sddm-theme-custom/theme.conf + cp -aR $src $out/share/sddm/themes/sddm-theme-custom/background.png + sed -i 's/background=.*/background=background.png/g' $out/share/sddm/themes/sddm-theme-custom/theme.conf + ''; + src = fetchurl { + url = "https://fliegendewurst.eu/tmp/utah.png"; + hash = "sha256-eREFKG5Uj991UB6GppZEOgrao1WToq1OtA+rKB5szs8="; + }; + + meta = with lib; { + description = "Breeze SDDM theme with Utah desert as background"; + homepage = "https://old.reddit.com/r/EarthPorn/comments/15egvz1/an_epic_morning_in_the_remote_utah_desert/"; + license = licenses.unfree; + maintainers = with maintainers; [ fliegendewurst ]; + platforms = platforms.all; + }; +} \ No newline at end of file