Files
home-manager/tests/modules/programs/wallust/wallust.nix
amusingimpala75 6a0bbd6b47 wallust: fix config location on darwin
This fixes the path of the wallust config file to be under Library/Application Support/wallust when on Darwin, instead of assuming it always falls under the XDG_CONFIG_HOME (for whatever reason the owner of the Rust dirs package refuses to allow XDG on macOS, since it's non-standard)
2026-05-12 18:32:04 -05:00

29 lines
553 B
Nix

{
pkgs,
...
}:
{
home.enableNixpkgsReleaseCheck = false;
programs.wallust = {
enable = true;
backend = "full";
settings = {
backend = "fastresize";
color_space = "lchmixed";
};
};
nmt.script =
let
path =
if pkgs.stdenv.hostPlatform.isDarwin then
"home-files/Library/Application Support/wallust/wallust.toml"
else
"home-files/.config/wallust/wallust.toml";
in
''
assertFileExists '${path}'
assertFileContent '${path}' ${./expected.toml}
'';
}