From bdf5331c964e80204caaa7e54a60ef69748f33ed Mon Sep 17 00:00:00 2001 From: Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> Date: Sat, 28 Sep 2024 00:37:34 +0530 Subject: Added ability to change the default program if multiple programs for the same purpose are enabled. --- modules/tools/file-manager/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'modules/tools/file-manager/default.nix') diff --git a/modules/tools/file-manager/default.nix b/modules/tools/file-manager/default.nix index 760584a..4889f5b 100644 --- a/modules/tools/file-manager/default.nix +++ b/modules/tools/file-manager/default.nix @@ -9,8 +9,16 @@ options.tools.file-manager = { default = lib.mkOption { + type = lib.types.enum [ + "nnn" + "lf" + ]; + description = "Default file manager."; + }; + + command = lib.mkOption { type = lib.types.str; - description = "Path to the default file manager program."; + description = "Command for the default file manager program."; }; }; } -- cgit v1.2.3