treewide: reformat nixfmt-rfc-style

Reformat repository using new nixfmt-rfc-style.
This commit is contained in:
Austin Horstman 2025-04-07 16:11:29 -05:00
parent 5df48c4255
commit cba2f9ce95
1051 changed files with 37028 additions and 26594 deletions

View file

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

View file

@ -17,30 +17,33 @@
};
};
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" ''
[alias]
cm=commit
d=diff --exclude=*.lock
s=status
view=!$HG config paths.default | xargs open
expected = builtins.toFile "sapling.conf" ''
[alias]
cm=commit
d=diff --exclude=*.lock
s=status
view=!$HG config paths.default | xargs open
[gpg]
key=not-an-actual-key
[gpg]
key=not-an-actual-key
[pager]
pager=delta
[pager]
pager=delta
[ui]
username=John Doe <johndoe@example.com>
[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}
'';
}