Yazi: Add shell opener.
This commit is contained in:
parent
b2b3546c59
commit
040c31f3ac
|
@ -130,6 +130,12 @@
|
|||
run = openWith "switch_install";
|
||||
}
|
||||
];
|
||||
shell_run = [
|
||||
{
|
||||
desc = "Run";
|
||||
run = openWith "bash";
|
||||
}
|
||||
];
|
||||
steam_run = [
|
||||
{
|
||||
desc = "Run";
|
||||
|
@ -189,10 +195,11 @@
|
|||
};
|
||||
in
|
||||
[
|
||||
(mkName "*.xlsx" [ "document" ])
|
||||
(mkName "*.mka" [ "audio" ])
|
||||
(mkName "*.nsp" [ "switch_install" ])
|
||||
(mkName "*.nsz" [ "switch_install" ])
|
||||
(mkName "*.sh" [ "shell_run" ])
|
||||
(mkName "*.xlsx" [ "document" ])
|
||||
|
||||
# Use `file -i file.txt` to find file mime type.
|
||||
# Use `xdg-mime query default "text/plain"` to find default app.
|
||||
|
|
|
@ -3,5 +3,7 @@ let
|
|||
purpose = config.module.purpose;
|
||||
in
|
||||
{
|
||||
options.module.autoupdate.enable = lib.mkEnableOption "the system auto-updates." // { default = purpose.disown; };
|
||||
options.module.autoupdate.enable = lib.mkEnableOption "the system auto-updates." // {
|
||||
default = purpose.disown;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -3,5 +3,7 @@ let
|
|||
purpose = config.module.purpose;
|
||||
in
|
||||
{
|
||||
options.module.distrobox.enable = lib.mkEnableOption "the distrobox." // { default = purpose.work; };
|
||||
options.module.distrobox.enable = lib.mkEnableOption "the distrobox." // {
|
||||
default = purpose.work;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -4,7 +4,9 @@ let
|
|||
in
|
||||
{
|
||||
options.module.docker = {
|
||||
enable = lib.mkEnableOption "the docker." // { default = purpose.work; };
|
||||
enable = lib.mkEnableOption "the docker." // {
|
||||
default = purpose.work;
|
||||
};
|
||||
rootless = lib.mkOption {
|
||||
default = false;
|
||||
type = lib.types.bool;
|
||||
|
|
|
@ -3,5 +3,7 @@ let
|
|||
purpose = config.module.purpose;
|
||||
in
|
||||
{
|
||||
options.module.virtmanager.enable = lib.mkEnableOption "the VM support." // { default = purpose.work; };
|
||||
options.module.virtmanager.enable = lib.mkEnableOption "the VM support." // {
|
||||
default = purpose.work;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue