mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-15 05:21:06 +01:00
25 lines
523 B
Nix
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}"
|
|
'';
|
|
}
|