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 | |
| 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')
| -rw-r--r-- | modules/file-management/lf/default.nix | 21 | ||||
| -rw-r--r-- | modules/file-management/lsd/default.nix | 7 | ||||
| -rw-r--r-- | modules/file-management/ouch/default.nix | 6 |
3 files changed, 24 insertions, 10 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; diff --git a/modules/file-management/lsd/default.nix b/modules/file-management/lsd/default.nix index 99fe1bd..b51c87e 100644 --- a/modules/file-management/lsd/default.nix +++ b/modules/file-management/lsd/default.nix @@ -2,8 +2,13 @@ # LSD - Ls alternative with icons and colors (Rust-based) { - config = lib.mkIf config.programs.lsd.enable { + options.file-management.lsd = { + enable = lib.mkEnableOption "Enables lsd."; + }; + + config = lib.mkIf config.file-management.lsd.enable { programs.lsd = { + enable = true; settings.icons.separator = " "; }; }; diff --git a/modules/file-management/ouch/default.nix b/modules/file-management/ouch/default.nix index 2b4411e..aafb23d 100644 --- a/modules/file-management/ouch/default.nix +++ b/modules/file-management/ouch/default.nix @@ -7,12 +7,12 @@ # Ouch! - CLI tool for compressing and decompressing various formats. { - options.programs.ouch = { + options.file-management.ouch = { enable = lib.mkEnableOption "Enables ouch."; package = lib.mkPackageOption pkgs "ouch" { }; }; - config = lib.mkIf config.programs.ouch.enable { - home.packages = [ config.programs.ouch.package ]; + config = lib.mkIf config.file-management.ouch.enable { + home.packages = [ config.file-management.ouch.package ]; }; } |
