Files
K900 0668fdbc15 treewide: stdenv.is* -> stdenv.hostPlatform.is*
Nixpkgs officialy deprecated the former.
2026-08-13 08:40:58 +02:00

38 lines
778 B
Nix

{ pkgs, ... }:
let
configDir =
if pkgs.stdenv.hostPlatform.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}
'';
}