fix(modules/home/cli): make stuff work with env vars

This commit is contained in:
Mohammad Rafiq 2025-05-19 16:56:46 +08:00
parent d4453d1a59
commit 798a21690e
No known key found for this signature in database
4 changed files with 18 additions and 20 deletions

View file

@ -1,6 +1,7 @@
{ config, lib, ... }:
{
config = lib.mkIf (config.cli.editor == "nvf") {
home.sessionVariables.EDITOR = "nvim";
programs.nvf = {
enable = true;
settings.vim = {

View file

@ -3,7 +3,7 @@
config =
lib.mkIf (config.cli.file-browser == "yazi")
{
home.shellAliases.FILE-BROWSER = "yazi";
home.sessionVariables.FILE_BROWSER = "yazi";
programs.yazi = {
enable = true;
shellWrapperName = "t";