From 9c2e64516472f3dbf66dbad775ab1dba6f86baa3 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Tue, 2 Sep 2025 09:16:51 +0200 Subject: treewide: Remove `with pkgs;` This is an antipattern and makes grepping for specific packages harder. --- modules/by-name/lf/lf/commands/default.nix | 46 +++++++++++++++++++----------- 1 file changed, 29 insertions(+), 17 deletions(-) (limited to 'modules/by-name/lf') diff --git a/modules/by-name/lf/lf/commands/default.nix b/modules/by-name/lf/lf/commands/default.nix index f953834b..5d5277d6 100644 --- a/modules/by-name/lf/lf/commands/default.nix +++ b/modules/by-name/lf/lf/commands/default.nix @@ -48,20 +48,20 @@ in { archive_compress = shell { name = "archive_compress"; - dependencies = with pkgs; [ - fzf - gnutar - xz - p7zip - zip + dependencies = [ + pkgs.fzf + pkgs.gnutar + pkgs.xz + pkgs.p7zip + pkgs.zip ]; }; archive_decompress = pipe { name = "archive_decompress"; - dependencies = with pkgs; [ - gnutar - unzip - p7zip + dependencies = [ + pkgs.gnutar + pkgs.unzip + pkgs.p7zip ]; }; @@ -122,10 +122,10 @@ in { }; set_wallpaper = pipe { name = "set_wallpaper"; - dependencies = with pkgs; [ - river # for `riverctl` - swaybg - procps + dependencies = [ + pkgs.river # for `riverctl` + pkgs.swaybg + pkgs.procps ]; }; @@ -140,16 +140,28 @@ in { }; trash_clear = shell { name = "trash_clear"; - dependencies = with pkgs; [conceal fzf gawk trashy gnused]; + dependencies = [ + pkgs.conceal + pkgs.fzf + pkgs.gawk + pkgs.trashy + pkgs.gnused + ]; }; trash_restore = shell { name = "trash_restore"; - dependencies = with pkgs; [conceal fzf gawk trashy gnused]; + dependencies = [ + pkgs.conceal + pkgs.fzf + pkgs.gawk + pkgs.trashy + pkgs.gnused + ]; }; view_file = async { name = "view_file"; - dependencies = with pkgs; [file]; + dependencies = [pkgs.file]; keepPath = true; }; } -- cgit 1.4.1