add ranger and okular
This commit is contained in:
parent
07a1416adb
commit
81edee8b5f
3 changed files with 22 additions and 5 deletions
1
config/ranger/rifle.conf
Normal file
1
config/ranger/rifle.conf
Normal file
|
@ -0,0 +1 @@
|
|||
ext pdf = okular "$@"
|
0
config/ranger/rifle.conf~
Normal file
0
config/ranger/rifle.conf~
Normal 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 = {
|
||||
enable = mkEnableOption false;
|
||||
};
|
||||
|
@ -11,6 +16,17 @@ in
|
|||
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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue