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

34 lines
749 B
Nix

{ pkgs, ... }:
let
configDir =
if pkgs.stdenv.isDarwin then "Library/Application Support/org.dystroy.bacon" else ".config/bacon";
in
{
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}";
};
};
};
nmt.script = ''
assertFileExists 'home-files/${configDir}/prefs.toml'
assertFileContent 'home-files/${configDir}/prefs.toml' ${./expected.toml}
'';
}