diff --git a/modules/programs/gnome/default.nix b/modules/programs/gnome/default.nix index 3e885a0..0a1968e 100644 --- a/modules/programs/gnome/default.nix +++ b/modules/programs/gnome/default.nix @@ -9,6 +9,7 @@ gnomeExtensions.caffeine gnomeExtensions.gnome-40-ui-improvements gnomeExtensions.notification-timeout # Custom package + gnomeExtensions.windowisready-remover # Custom package gnomeExtensions.application-volume-mixer gnome.eog gnome.nautilus @@ -83,6 +84,7 @@ "notification-timeout@chlumskyvaclav.gmail.com" "gnome-ui-tune@itstime.tech" "volume-mixer@evermiss.net" + "windowIsReady_Remover@nunofarruca@gmail.com" ]; }; diff --git a/packages/default.nix b/packages/default.nix index c768d51..0df15b5 100644 --- a/packages/default.nix +++ b/packages/default.nix @@ -1,6 +1,9 @@ { pkgs ? import {} }: -{ +let + pySmartDL = pkgs.callPackage ./development/python/pySmartDL {}; + cfscrape = pkgs.callPackage ./development/python/cfscrape {}; +in { gamemode = pkgs.callPackage ./tools/games/gamemode { }; key-mapper = pkgs.callPackage ./tools/games/key-mapper {}; vfio-isolate = pkgs.callPackage ./tools/virtualisation/vfio-isolate {}; @@ -8,8 +11,17 @@ # Not as clean as I hoped, but it works gnomeExtensions = pkgs.gnomeExtensions // { notification-timeout = pkgs.callPackage ./desktop/gnome/extensions/notification-timeout {}; + windowisready-remover = pkgs.callPackage ./desktop/gnome/extensions/windowisready-remover {}; + }; + python3Packages = pkgs.python3Packages // { + pySmartDL = pySmartDL; + cfscrape = cfscrape; }; replaysorcery = pkgs.callPackage ./tools/games/replaysorcery {}; evdev-proxy = pkgs.callPackage ./tools/virtualisation/evdev-proxy {}; anime4k = pkgs.callPackage ./misc/video/anime4k {}; + anime-dl = pkgs.callPackage ./tools/video/animedl { + pySmartDL = pySmartDL; + cfscrape = cfscrape; + }; } diff --git a/packages/desktop/gnome/extensions/windowisready-remover/default.nix b/packages/desktop/gnome/extensions/windowisready-remover/default.nix new file mode 100644 index 0000000..69e60b3 --- /dev/null +++ b/packages/desktop/gnome/extensions/windowisready-remover/default.nix @@ -0,0 +1,32 @@ +{ stdenv +, lib +, fetchFromGitHub }: + +stdenv.mkDerivation rec { + pname = "WindowIsReady-Remover"; + version = "1.12"; + + src = fetchFromGitHub { + owner = "nunofarruca"; + repo = "WindowIsReady_Remover"; + rev = version; + sha256 = "0yivd8q2mkb2c40n1pndwrsv9bi2lnm3r06wk04vhjc6f8x7qj52"; + }; + + uuid = "windowIsReady_Remover@nunofarruca@gmail.com"; + + dontBuild = true; + + installPhase = '' + mkdir -p $out/share/gnome-shell/extensions/${uuid} + cp -r ${uuid}/* $out/share/gnome-shell/extensions/${uuid} + ''; + + meta = with lib; { + description = "Removes window is ready Notification"; + homepage = "https://github.com/nunofarruca/WindowIsReady_Remover"; + # NOTE: Wrong + license = licenses.unlicense; + maintainers = [ ]; + }; +}