darcs: add module

This commit is contained in:
Chris Martin 2023-03-27 12:25:17 -06:00 committed by Robert Helgesson
parent af715ed857
commit 050d01a62c
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
9 changed files with 101 additions and 0 deletions

View file

@ -0,0 +1,2 @@
Real Person <personal@example.com>
Real Person <corporate@example.com>

View 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}
'';
};
}

View file

@ -0,0 +1,3 @@
^.idea$
.iml$
^.stack-work$

View 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}
'';
};
}

View file

@ -0,0 +1,4 @@
{
darcs-author = ./author.nix;
darcs-boring = ./boring.nix;
}