helm/modules/shell/ranger.nix

19 lines
359 B
Nix
Raw Normal View History

2020-03-28 22:48:43 -07:00
{ config, options, pkgs, lib, ... }:
with lib;
{
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)
];
};
}