feat(modules/home/cli): add yazi
This commit is contained in:
parent
c644f53ec7
commit
b2ee33c215
4 changed files with 30 additions and 13 deletions
|
@ -6,6 +6,9 @@
|
||||||
./desktop.nix
|
./desktop.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
cli.editor = "nvim";
|
||||||
|
cli.file-browser = "yazi";
|
||||||
|
|
||||||
home.persistence."/persist/home/rafiq" = {
|
home.persistence."/persist/home/rafiq" = {
|
||||||
directories = [
|
directories = [
|
||||||
".ssh"
|
".ssh"
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
{config, lib, osConfig, ... }:
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
];
|
|
||||||
|
|
||||||
options.cli = {
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
config = {
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
15
modules/home/cli/default.nix
Normal file
15
modules/home/cli/default.nix
Normal 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 = {
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
12
modules/home/cli/file-browser/yazi.nix
Normal file
12
modules/home/cli/file-browser/yazi.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue