From 2df874e01b57e487429fd102c3902b465d50d054 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Wed, 30 Oct 2024 20:22:10 -0700 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(less):=20Set=20env=20vars=20in?= =?UTF-8?q?dependently=20of=20shell?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- home/bat/default.nix | 2 +- home/less/default.nix | 12 +++--------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/home/bat/default.nix b/home/bat/default.nix index 94ddad6..16641be 100644 --- a/home/bat/default.nix +++ b/home/bat/default.nix @@ -20,7 +20,7 @@ }; home.sessionVariables = lib.mkIf config.home.preferXdgDirectories { - BATDIFF_USE_DELTA = true; + BATDIFF_USE_DELTA = "true"; }; programs.fish = lib.mkIf config.programs.fish.enable { diff --git a/home/less/default.nix b/home/less/default.nix index 34203f1..3761235 100644 --- a/home/less/default.nix +++ b/home/less/default.nix @@ -1,14 +1,8 @@ -{ - lib, - config, - ... -}: { +{...}: { programs.less.enable = true; - programs.fish = lib.mkIf config.programs.fish.enable { - interactiveShellInit = '' - set -gx LESS -R - ''; + home.sessionVariables = { + LESS = "-R"; }; programs.lesspipe.enable = true;