nixos/modules/shell/ranger/default.nix

33 lines
509 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,
...
}:
2024-08-01 16:24:09 +04:00
let
2023-10-18 16:47:12 +04:00
cfg = config.modules.shell.ranger;
in {
2023-07-29 16:57:41 +04:00
options.modules.shell.ranger = {
2024-08-01 16:24:09 +04:00
enable = lib.mkEnableOption false;
2023-07-29 16:57:41 +04:00
};
2024-08-01 16:24:09 +04:00
config = lib.mkIf cfg.enable {
2023-07-29 16:57:41 +04:00
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
};
}