Files
home-manager/tests/modules/programs/arf/default.nix
2026-11-09 20:47:38 -06:00

27 lines
612 B
Nix

{
arf-settings =
{ config, pkgs, ... }:
let
configDir = if pkgs.stdenv.hostPlatform.isDarwin then "Library/Application Support" else ".config";
in
{
programs.arf = {
enable = true;
package = config.lib.test.mkStubPackage { };
settings = {
editor.auto_suggestions = "cwd";
editor.key_map = {
alt-a = " <- ";
alt-p = " |>\n";
alt-l = "\\(x) ";
};
};
};
nmt.script = ''
assertFileContent "home-files/${configDir}/arf/arf.toml" ${./expected.toml}
'';
};
}