Apply nixfmt on many files
This commit is contained in:
parent
9799d3de2d
commit
45abf3d38a
177 changed files with 2850 additions and 3565 deletions
|
|
@ -25,7 +25,9 @@ with lib;
|
|||
}
|
||||
|
||||
assertFileExists home-files/.config/git/config
|
||||
assertFileContent home-files/.config/git/config ${./git-with-email-expected.conf}
|
||||
assertFileContent home-files/.config/git/config ${
|
||||
./git-with-email-expected.conf
|
||||
}
|
||||
|
||||
assertGitConfig "sendemail.hm@example.com.from" "hm@example.com"
|
||||
assertGitConfig "sendemail.hm-account.from" "hm@example.org"
|
||||
|
|
|
|||
|
|
@ -11,15 +11,15 @@ let
|
|||
};
|
||||
};
|
||||
|
||||
substituteExpected = path: pkgs.substituteAll {
|
||||
src = path;
|
||||
substituteExpected = path:
|
||||
pkgs.substituteAll {
|
||||
src = path;
|
||||
|
||||
git_include_path = pkgs.writeText "contents" (generators.toINI {} gitInclude);
|
||||
};
|
||||
git_include_path =
|
||||
pkgs.writeText "contents" (generators.toINI { } gitInclude);
|
||||
};
|
||||
|
||||
in
|
||||
|
||||
{
|
||||
in {
|
||||
config = {
|
||||
programs.git = mkMerge [
|
||||
{
|
||||
|
|
@ -32,7 +32,7 @@ in
|
|||
extraConfig = {
|
||||
extra = {
|
||||
name = "value";
|
||||
multiple = [1];
|
||||
multiple = [ 1 ];
|
||||
};
|
||||
};
|
||||
ignores = [ "*~" "*.swp" ];
|
||||
|
|
@ -62,14 +62,16 @@ in
|
|||
extraConfig."extra \"backcompat.with.dots\"".previously = "worked";
|
||||
extraConfig.extra.boolean = true;
|
||||
extraConfig.extra.integer = 38;
|
||||
extraConfig.extra.multiple = [2];
|
||||
extraConfig.extra.multiple = [ 2 ];
|
||||
extraConfig.extra.subsection.value = "test";
|
||||
}
|
||||
];
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/git/config
|
||||
assertFileContent home-files/.config/git/config ${substituteExpected ./git-expected.conf}
|
||||
assertFileContent home-files/.config/git/config ${
|
||||
substituteExpected ./git-expected.conf
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue