feat(modules/home/cli): add yazi

This commit is contained in:
Mohammad Rafiq 2025-05-19 14:36:42 +08:00
parent c644f53ec7
commit b2ee33c215
No known key found for this signature in database
4 changed files with 30 additions and 13 deletions

View file

@ -6,6 +6,9 @@
./desktop.nix
];
cli.editor = "nvim";
cli.file-browser = "yazi";
home.persistence."/persist/home/rafiq" = {
directories = [
".ssh"

View file

@ -1,13 +0,0 @@
{config, lib, osConfig, ... }:
{
imports = [
];
options.cli = {
};
config = {
};
}

View file

@ -0,0 +1,15 @@
{config, lib, osConfig, ... }:
{
imports = [
./file-browser/yazi.nix
];
options.cli = {
editor = lib.pantheon.mkStrOption;
file-browser = lib.pantheon.mkStrOption;
};
config = {
};
}

View file

@ -0,0 +1,12 @@
{ config, lib, ... }:
{
config =
lib.mkIf (config.cli.file-browser == "yazi")
{
home.shellAliases.FILE-BROWSER = "yazi";
programs.yazi = {
enable = true;
shellWrapperName = "t";
};
};
}