From 23616c2e13f63f0262d64538032b98ce83cc0ec2 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Wed, 15 Jul 2026 20:32:36 +0530 Subject: feat: renamed the options to reflect their changed directory stucture Renamed the options for the configurations based on the sub-module that they belong to --- modules/file-management/lf/default.nix | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'modules/file-management/lf') diff --git a/modules/file-management/lf/default.nix b/modules/file-management/lf/default.nix index 47a950f..28955ea 100644 --- a/modules/file-management/lf/default.nix +++ b/modules/file-management/lf/default.nix @@ -7,7 +7,19 @@ # lf - terminal file manager { - config = lib.mkIf config.programs.lf.enable { + options.file-management.lf = { + enable = lib.mkEnableOption "Enables lf."; + package = lib.mkOption { + type = lib.types.package; + default = pkgs.lf.overrideAttrs (old: { + dontWrapQtApps = true; + dontPatchShebangs = true; + }); + description = "The lf package to use."; + }; + }; + + config = lib.mkIf config.file-management.lf.enable { xdg.mimeApps.defaultApplications = { "inode/directory" = "lf.desktop"; }; @@ -17,11 +29,8 @@ ]; programs.lf = { - package = pkgs.lf.overrideAttrs (old: { - dontWrapQtApps = true; - dontPatchShebangs = true; - }); - + enable = true; + package = config.file-management.lf.package; settings = { number = true; icons = true; -- cgit v1.2.3