feat(programs): add navi
This commit is contained in:
parent
52650a3c84
commit
af1f1fec2e
4 changed files with 29 additions and 1 deletions
|
@ -62,6 +62,7 @@ in
|
|||
fish.enable = true;
|
||||
git.enable = true;
|
||||
gpg.enable = true;
|
||||
navi.enable = true;
|
||||
tmux.enable = true;
|
||||
};
|
||||
};
|
||||
|
@ -99,6 +100,7 @@ in
|
|||
exa
|
||||
gparted
|
||||
neofetch
|
||||
reptyr
|
||||
ripgrep
|
||||
up
|
||||
viu
|
||||
|
@ -143,7 +145,6 @@ in
|
|||
];
|
||||
};
|
||||
zoxide.enable = true;
|
||||
navi.enable = true;
|
||||
};
|
||||
home = {
|
||||
username = "moritz";
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
./ledger
|
||||
./logseq.nix
|
||||
./miracast.nix
|
||||
./navi
|
||||
./nvim
|
||||
./python.nix
|
||||
./rofi
|
||||
|
|
6
modules/programs/navi/cheats/reptyr.cheat
Normal file
6
modules/programs/navi/cheats/reptyr.cheat
Normal file
|
@ -0,0 +1,6 @@
|
|||
% tmux, reptyr
|
||||
|
||||
# send background process to tmux
|
||||
bg <process> && disown <process> && tmux new "$SHELL -c 'reptyr <process>'"
|
||||
|
||||
$ process: ps x -eo pid,tty,stat | awk '$2 ~ /pts/' | awk '$3 ~ /T/' | cut -d" " -f1 --- --preview "ps -p {} -o cmd"
|
20
modules/programs/navi/default.nix
Normal file
20
modules/programs/navi/default.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.my.programs.navi;
|
||||
in
|
||||
{
|
||||
options.my.programs.navi.enable = mkEnableOption "navi";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home-manager.users.moritz = {
|
||||
programs.navi.enable = true;
|
||||
xdg.dataFile."navi/cheats/personal" = {
|
||||
enable = true;
|
||||
recursive = true;
|
||||
source = ./cheats;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue