From ed59af8dd7ee1ca966e13995e15fe48dcf065c7c Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Thu, 26 Dec 2024 17:30:56 +0100 Subject: [PATCH] chore: freetube --- modules/freetube.nix | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/modules/freetube.nix b/modules/freetube.nix index f1971e1..d7ad972 100644 --- a/modules/freetube.nix +++ b/modules/freetube.nix @@ -2,31 +2,7 @@ { users.users.yoda = { packages = with pkgs; [ - freetube # YouTube client. + unstable.freetube # YouTube client. ]; }; - - # Manually enable Wayland support. - # Method1: https://www.reddit.com/r/NixOS/comments/scf0ui/comment/hu6xfn8/?utm_source=share&utm_medium=web2x&context=3 - # Method2: https://github.com/NixOS/nixpkgs/issues/222043#issuecomment-1493457041 - nixpkgs.overlays = lib.mkIf (config.services.xserver.displayManager.gdm.wayland) [ - (final: prev: { - freetube = prev.freetube.overrideAttrs (oldAttrs: { - postInstall = (oldAttrs.postInstall or "") + '' - substituteInPlace $out/share/applications/freetube.desktop \ - --replace "Exec=freetube" "Exec=freetube --enable-features=UseOzonePlatform --ozone-platform=wayland" - ''; - }); - }) -# (self: super: { -# freetube = super.freetube.overrideAttrs (old: { -# preFixup = (old.preFixup or "") + '' -# gappsWrapperArgs+=( -# --add-flags "--enable-features=UseOzonePlatform" -# --add-flags "--ozone-platform=wayland" -# ) -# ''; -# }); -# }) - ]; }