mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2025-06-20 18:08:02 +02:00
Docs: add Nix and NixOS install instructions
This commit is contained in:
parent
930535cbea
commit
13aa7a3a1b
28
README.md
28
README.md
@ -109,6 +109,34 @@ package.
|
|||||||
sudo port install ctpv
|
sudo port install ctpv
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Nix
|
||||||
|
|
||||||
|
#### Nix package
|
||||||
|
|
||||||
|
```console
|
||||||
|
nix-env -ivf cptv
|
||||||
|
nix profile install nixpkgs#cptv # with flakes enabled
|
||||||
|
```
|
||||||
|
|
||||||
|
#### NixOS and HomeManager
|
||||||
|
|
||||||
|
If you don't need to call it directly and
|
||||||
|
just want to use it through lf:
|
||||||
|
|
||||||
|
```nix
|
||||||
|
programs.lf = {
|
||||||
|
previewer = {
|
||||||
|
keybinding = "i";
|
||||||
|
source = "${pkgs.ctpv}/bin/ctpv";
|
||||||
|
};
|
||||||
|
extraConfig = ''
|
||||||
|
&${pkgs.ctpv}/bin/ctpv -s $id
|
||||||
|
cmd on-quit %${pkgs.ctpv}/bin/ctpv -e $id
|
||||||
|
set cleaner ${pkgs.ctpv}/bin/ctpvclear
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## Integration
|
## Integration
|
||||||
|
|
||||||
### lf file manager
|
### lf file manager
|
||||||
|
Loading…
x
Reference in New Issue
Block a user