From b2e7df6e04461beab1829db397f0a68dafa23dd3 Mon Sep 17 00:00:00 2001 From: winston Date: Thu, 2 Mar 2023 20:30:14 +0100 Subject: [PATCH] refactor(music): inherit for ncmpcpp binds --- home/apps/music.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/home/apps/music.nix b/home/apps/music.nix index a49e3fa..f83eded 100644 --- a/home/apps/music.nix +++ b/home/apps/music.nix @@ -9,10 +9,7 @@ in { programs.ncmpcpp = { enable = true; bindings = - lib.mapAttrsToList (key: command: { - key = key; - command = command; - }) + lib.mapAttrsToList (key: command: {inherit key command;}) { "j" = "scroll_down"; "k" = "scroll_up";