diff options
| author | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-07-15 20:32:36 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-07-15 20:32:36 +0530 |
| commit | 23616c2e13f63f0262d64538032b98ce83cc0ec2 (patch) | |
| tree | 3ea56e8c12c6735b5dddb34b5699c59c00066b0f /modules/file-management/lf/default.nix | |
| parent | 01aaa7ad39c1fe8af6ffbca31abbab27dbfefc95 (diff) | |
| download | home-manager-config-23616c2e13f63f0262d64538032b98ce83cc0ec2.tar.gz home-manager-config-23616c2e13f63f0262d64538032b98ce83cc0ec2.zip | |
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
Diffstat (limited to 'modules/file-management/lf/default.nix')
| -rw-r--r-- | modules/file-management/lf/default.nix | 21 |
1 files changed, 15 insertions, 6 deletions
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; |
