1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-06 17:11:03 +01:00
home-manager/tests/modules/programs/tex-fmt/default-settings.nix
William G Underwood 9556d3c2b4 tex-fmt: add module
tex-fmt is a LaTeX source code formatter written in Rust, and uses
a user configuration file in the .toml format.
2025-03-19 15:40:32 -05:00

15 lines
380 B
Nix

{ config, pkgs, ... }: {
config = {
programs.tex-fmt = { enable = true; };
nmt.script = let
expectedConfDir = if pkgs.stdenv.isDarwin then
"Library/Application Support"
else
".config";
expectedConfigPath = "home-files/${expectedConfDir}/tex-fmt/tex-fmt.toml";
in ''
assertPathNotExists "${expectedConfigPath}"
'';
};
}