depot/third_party/home-manager/tests/modules/programs/papis/papis.nix
Default email 75fa0ae5af Project import generated by Copybara.
GitOrigin-RevId: c3ab5ea047e6dc73df530948f7367455749d8906
2023-08-08 12:19:01 +02:00

46 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
''}
'';
}