1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-21 17:59:39 +01:00
home-manager/tests/modules/programs/tex-fmt/custom-settings.nix
Austin Horstman cba2f9ce95 treewide: reformat nixfmt-rfc-style
Reformat repository using new nixfmt-rfc-style.
2025-04-08 08:50:05 -07:00

29 lines
713 B
Nix

{ config, pkgs, ... }:
{
config = {
programs.tex-fmt = {
enable = true;
settings = {
wrap = true;
tabsize = 2;
tabchar = "space";
lists = [ ];
};
};
nmt.script =
let
expectedConfDir = if pkgs.stdenv.isDarwin then "Library/Application Support" else ".config";
expectedConfigPath = "home-files/${expectedConfDir}/tex-fmt/tex-fmt.toml";
in
''
assertFileExists "${expectedConfigPath}"
assertFileContent "${expectedConfigPath}" ${pkgs.writeText "tex-fmt.config-custom.expected" ''
lists = []
tabchar = "space"
tabsize = 2
wrap = true
''}
'';
};
}