nixos/modules/shell/ranger/default.nix
2023-10-18 16:47:12 +04:00

32 lines
511 B
Nix

{
outputs,
options,
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.modules.shell.ranger;
in {
options.modules.shell.ranger = {
enable = mkEnableOption false;
};
config = mkIf cfg.enable {
users.users.sako.packages = with pkgs; [
ranger
# pdf viewer
okular
];
home-manager.users.sako = {pkgs, ...}: {
xdg.configFile = {
ranger = {
source = ../../../config/ranger;
recursive = true;
};
};
};
};
}