1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-27 04:09:47 +01:00
home-manager/tests/modules/programs/bacon/bacon.nix
shimun a88df2fb10
bacon: add module
Bacon is a background rust code checker. See
<https://dystroy.org/bacon/>.
2023-09-24 12:07:57 +02:00

23 lines
572 B
Nix

{ ... }: {
programs.bacon = {
enable = true;
settings = {
jobs = {
ta = {
command = [ "cargo" "test" "--all-features" "--color" "always" ];
need_stdout = true;
};
};
export = {
enabled = true;
path = ".bacon-locations";
line_format = "{kind} {path}:{line}:{column} {message}";
};
};
};
test.stubs.bacon = { };
nmt.script = ''
assertFileExists home-files/.config/bacon/prefs.toml
assertFileContent home-files/.config/bacon/prefs.toml ${./expected.toml}
'';
}