mirror of
https://github.com/nix-community/home-manager
synced 2024-12-05 01:19:46 +01:00
47 lines
813 B
Nix
47 lines
813 B
Nix
|
{ ... }:
|
||
|
|
||
|
{
|
||
|
programs.papis = {
|
||
|
enable = true;
|
||
|
settings = {
|
||
|
picktool = "fzf";
|
||
|
file-browser = "ranger";
|
||
|
add-edit = true;
|
||
|
};
|
||
|
libraries = {
|
||
|
papers = {
|
||
|
isDefault = true;
|
||
|
settings = {
|
||
|
dir = "~/papers";
|
||
|
opentool = "okular";
|
||
|
};
|
||
|
};
|
||
|
books.settings = {
|
||
|
dir = "~/books";
|
||
|
opentool = "firefox";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
test.stubs.papis = { };
|
||
|
|
||
|
nmt.script = ''
|
||
|
assertFileContent home-files/.config/papis/config \
|
||
|
${builtins.toFile "papis-expected-settings.ini" ''
|
||
|
[books]
|
||
|
dir=~/books
|
||
|
opentool=firefox
|
||
|
|
||
|
[papers]
|
||
|
dir=~/papers
|
||
|
opentool=okular
|
||
|
|
||
|
[settings]
|
||
|
add-edit=true
|
||
|
default-library=papers
|
||
|
file-browser=ranger
|
||
|
picktool=fzf
|
||
|
''}
|
||
|
'';
|
||
|
}
|