Apply nixfmt on many files

This commit is contained in:
Robert Helgesson 2020-02-02 00:39:17 +01:00
parent 9799d3de2d
commit 45abf3d38a
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
177 changed files with 2850 additions and 3565 deletions

View file

@ -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"

View file

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