mirror of
https://github.com/nix-community/home-manager.git
synced 2025-03-10 10:47:02 +00:00
Instead of having to manually stub packages that should not be downloaded we instead automatically stub all packages (except a small list of whitelisted ones). Tests can re-introduce the real package by using the `realPkgs` module argument.
32 lines
543 B
Nix
32 lines
543 B
Nix
{
|
|
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
|
|
'';
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileContent \
|
|
home-files/.pubsrc ${./pubs-example-settings-expected-pubsrc}
|
|
'';
|
|
}
|