darcs: add module
This commit is contained in:
parent
af715ed857
commit
050d01a62c
9 changed files with 101 additions and 0 deletions
2
tests/modules/programs/darcs/author-expected.txt
Normal file
2
tests/modules/programs/darcs/author-expected.txt
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
Real Person <personal@example.com>
|
||||
Real Person <corporate@example.com>
|
||||
17
tests/modules/programs/darcs/author.nix
Normal file
17
tests/modules/programs/darcs/author.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
config = {
|
||||
programs.darcs = {
|
||||
enable = true;
|
||||
author = [
|
||||
"Real Person <personal@example.com>"
|
||||
"Real Person <corporate@example.com>"
|
||||
];
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileContent home-files/.darcs/author ${./author-expected.txt}
|
||||
'';
|
||||
};
|
||||
}
|
||||
3
tests/modules/programs/darcs/boring-expected.txt
Normal file
3
tests/modules/programs/darcs/boring-expected.txt
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
^.idea$
|
||||
.iml$
|
||||
^.stack-work$
|
||||
14
tests/modules/programs/darcs/boring.nix
Normal file
14
tests/modules/programs/darcs/boring.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
config = {
|
||||
programs.darcs = {
|
||||
enable = true;
|
||||
boring = [ "^.idea$" ".iml$" "^.stack-work$" ];
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileContent home-files/.darcs/boring ${./boring-expected.txt}
|
||||
'';
|
||||
};
|
||||
}
|
||||
4
tests/modules/programs/darcs/default.nix
Normal file
4
tests/modules/programs/darcs/default.nix
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
darcs-author = ./author.nix;
|
||||
darcs-boring = ./boring.nix;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue