mirror of
https://github.com/nix-community/home-manager
synced 2024-08-21 19:46:30 +02: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}
|
||
|
'';
|
||
|
}
|