blob: 7e5fb8833928cb3ca869d8ffed86621d337c0a59 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
{ pkgs, config, lib, ... }:
{
options = {
ranger.enable = lib.mkEnableOption "enable ranger";
};
config = lib.mkIf config.ranger.enable {
home.packages = with pkgs; [ ranger ];
xdg.configFile = {
"ranger/rc.conf".text = builtins.readFile ./rc.conf;
"ranger/rifle.conf".text = builtins.readFile ./rifle.conf;
"ranger/scope.sh".text = builtins.readFile ./scope.sh;
"ranger/commands.py".source = ./commands.py;
"ranger/plugins".source = ./plugins;
};
};
}
|