Reworked home manager configuration to modules
This commit is contained in:
35
modules/home/applications/yazi.nix
Normal file
35
modules/home/applications/yazi.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ config, lib, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.settings.applications.yazi;
|
||||
in {
|
||||
options = {
|
||||
settings.applications.yazi.enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
description = ''
|
||||
Enable yazi terminal file manager
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.yazi = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
settings = {
|
||||
opener = {
|
||||
open = [
|
||||
{ run = "xdg-open $@"; desc = "xdg"; orphan = true; }
|
||||
];
|
||||
};
|
||||
open = {
|
||||
prepend_rules = [
|
||||
{ name = "*.rnote"; use = "open"; }
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user