mirror of
https://github.com/nix-community/home-manager.git
synced 2026-12-06 04:40:17 +00:00
27 lines
612 B
Nix
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}
|
|
'';
|
|
};
|
|
}
|