2eafb8192e
GitOrigin-RevId: 176e455371a8371586e8a3ff0d56ee9f3ca2324e
36 lines
598 B
Nix
36 lines
598 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
programs.pubs = {
|
|
enable = true;
|
|
|
|
extraConfig = ''
|
|
[main]
|
|
pubsdir = ~/.pubs
|
|
docsdir = ~/.pubs/doc
|
|
doc_add = link
|
|
open_cmd = xdg-open
|
|
|
|
[plugins]
|
|
active = git,alias
|
|
|
|
[[alias]]
|
|
|
|
[[[la]]]
|
|
command = list -a
|
|
description = lists papers in lexicographic order
|
|
|
|
[[git]]
|
|
quiet = True
|
|
manual = False
|
|
force_color = False
|
|
'';
|
|
};
|
|
|
|
test.stubs.pubs = { };
|
|
|
|
nmt.script = ''
|
|
assertFileContent \
|
|
home-files/.pubsrc ${./pubs-example-settings-expected-pubsrc}
|
|
'';
|
|
}
|