2020-03-28 22:48:43 -07:00
|
|
|
{ config, options, pkgs, lib, ... }:
|
|
|
|
with lib;
|
2020-02-09 00:04:51 -08:00
|
|
|
{
|
2020-03-28 22:48:43 -07:00
|
|
|
options.modules.shell.ranger = {
|
|
|
|
enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf config.modules.shell.ranger.enable {
|
|
|
|
my.packages = with pkgs; [
|
|
|
|
ranger
|
|
|
|
# For image previews
|
|
|
|
(lib.mkIf config.services.xserver.enable w3m)
|
|
|
|
];
|
|
|
|
};
|
2020-02-09 00:04:51 -08:00
|
|
|
}
|