treewide: reformat nixfmt-rfc-style
Reformat repository using new nixfmt-rfc-style.
This commit is contained in:
parent
5df48c4255
commit
cba2f9ce95
1051 changed files with 37028 additions and 26594 deletions
|
|
@ -7,18 +7,21 @@
|
|||
userEmail = "johndoe@example.com";
|
||||
};
|
||||
|
||||
nmt.script = let
|
||||
configfile = if pkgs.stdenv.isDarwin then
|
||||
"Library/Preferences/sapling/sapling.conf"
|
||||
else
|
||||
".config/sapling/sapling.conf";
|
||||
nmt.script =
|
||||
let
|
||||
configfile =
|
||||
if pkgs.stdenv.isDarwin then
|
||||
"Library/Preferences/sapling/sapling.conf"
|
||||
else
|
||||
".config/sapling/sapling.conf";
|
||||
|
||||
expected = builtins.toFile "sapling.conf" ''
|
||||
[ui]
|
||||
username=John Doe <johndoe@example.com>
|
||||
expected = builtins.toFile "sapling.conf" ''
|
||||
[ui]
|
||||
username=John Doe <johndoe@example.com>
|
||||
'';
|
||||
in
|
||||
''
|
||||
assertFileExists home-files/${configfile}
|
||||
assertFileContent home-files/${configfile} ${expected}
|
||||
'';
|
||||
in ''
|
||||
assertFileExists home-files/${configfile}
|
||||
assertFileContent home-files/${configfile} ${expected}
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue