nixos/modules/shell/ranger/default.nix

33 lines
511 B
Nix
Raw Normal View History

2023-07-29 16:57:41 +04:00
{
2023-10-18 16:47:12 +04:00
outputs,
options,
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.modules.shell.ranger;
in {
2023-07-29 16:57:41 +04:00
options.modules.shell.ranger = {
enable = mkEnableOption false;
};
config = mkIf cfg.enable {
users.users.sako.packages = with pkgs; [
ranger
2023-10-18 16:47:12 +04:00
# pdf viewer
okular
2023-07-29 16:57:41 +04:00
];
2023-10-18 16:47:12 +04:00
home-manager.users.sako = {pkgs, ...}: {
xdg.configFile = {
ranger = {
source = ../../../config/ranger;
recursive = true;
};
};
};
2023-07-29 16:57:41 +04:00
};
}