1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-15 05:21:06 +01:00
home-manager/tests/modules/programs/ty/example-settings.nix
2025-12-07 23:30:36 -06:00

25 lines
523 B
Nix

{ pkgs, ... }:
{
programs.ty = {
enable = true;
settings = {
rules.index-out-of-bounds = "ignore";
};
};
test.stubs.ty = { };
nmt.script =
let
expectedConfigPath = "home-files/.config/ty/ty.toml";
expectedConfigContent = pkgs.writeText "ty.config-custom.expected" ''
[rules]
index-out-of-bounds = "ignore"
'';
in
''
assertFileExists "${expectedConfigPath}"
assertFileContent "${expectedConfigPath}" "${expectedConfigContent}"
'';
}