add ranger and okular

This commit is contained in:
Sakooooo 2023-10-18 16:47:12 +04:00
parent 07a1416adb
commit 81edee8b5f
Signed by: sako
GPG key ID: 3FD715D87D7725E0
3 changed files with 22 additions and 5 deletions

1
config/ranger/rifle.conf Normal file
View file

@ -0,0 +1 @@
ext pdf = okular "$@"

View file

View file

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