From 615ec9d1d542a5afd4a2e05928cfe42f5606a605 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Sat, 12 Apr 2025 15:43:10 +0200 Subject: [PATCH] Add mpris script to mpv --- modules/cli/nix/nix.nix | 2 -- nvim/lua/plugins/ui.lua | 2 +- overlays/default.nix | 4 ++++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/cli/nix/nix.nix b/modules/cli/nix/nix.nix index 94be39c..133da7d 100644 --- a/modules/cli/nix/nix.nix +++ b/modules/cli/nix/nix.nix @@ -14,8 +14,6 @@ # Making legacy nix commands consistent as well, awesome! nixPath = lib.mapAttrsToList (key: value: "${key}=${value.to.path}") config.nix.registry; - channel.enable = false; - optimise.automatic = true; settings = { warn-dirty = false; diff --git a/nvim/lua/plugins/ui.lua b/nvim/lua/plugins/ui.lua index 9861c8f..34e7c72 100644 --- a/nvim/lua/plugins/ui.lua +++ b/nvim/lua/plugins/ui.lua @@ -127,7 +127,7 @@ return { event = "DeferredUIEnter", after = function() require("areyoulockedin").setup({ - session_key = "076af1c5-767f-4d5b-8a33-ea559d513f0e", + session_key = "3689e546-b1a4-4cc3-8209-f612e7428528", }) end, } diff --git a/overlays/default.nix b/overlays/default.nix index 36c1a89..c28374c 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -41,6 +41,10 @@ in { src = tmux; }; + mpv = super.mpv.override { + scripts = [super.mpvScripts.mpris]; + }; + # Gnome-control-center can only be launched if XDG_CURRENT_DESKTOP is GNOME. gnome-control-center = wrapProgram super.gnome-control-center ["gnome-control-center"] "--set XDG_CURRENT_DESKTOP GNOME";