From 7d320b8492592e2dfe941ae2719f60e6a3daa0ba Mon Sep 17 00:00:00 2001 From: Soispha Date: Mon, 29 May 2023 12:53:05 +0200 Subject: Feat(hm/conf/lf/cmds): Add a way to create temp scripts --- home-manager/config/lf/commands/default.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'home-manager/config/lf/commands/default.nix') diff --git a/home-manager/config/lf/commands/default.nix b/home-manager/config/lf/commands/default.nix index 27bf01db..a7cb2039 100644 --- a/home-manager/config/lf/commands/default.nix +++ b/home-manager/config/lf/commands/default.nix @@ -147,13 +147,21 @@ in { file = ./scripts/mk_ln; dependencies = []; }; - mk_scr = shell { - file = ./scripts/mk_scr; + mk_scr_default = shell { + file = ./scripts/mk_scr_default; dependencies = builtins.attrValues {inherit (pkgs) neovim;}; replacementStrings = { SHELL_LIBRARY_TEMPLATE = "${shell_library.rawTemplate."${system}"}"; }; }; + mk_scr_temp = shell { + file = ./scripts/mk_scr_temp; + dependencies = builtins.attrValues {inherit (pkgs) neovim;}; + replacementStrings = { + SHELL_LIBRARY_TEMPLATE = "${shell_library.rawTemplate."${system}"}"; + TO_BE_SHELL_LIBRARY_PATH = "%SHELL_LIBRARY_PATH"; # replacement is not recursive + }; + }; open = shell { file = ./scripts/open; dependencies = builtins.attrValues {inherit (pkgs) file xdg-utils neovim git;}; -- cgit 1.4.1