mirror of
https://github.com/nix-community/home-manager
synced 2024-11-09 20:59:44 +01:00
37 lines
598 B
Nix
37 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}
|
||
|
'';
|
||
|
}
|