mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-15 05:21:06 +01:00
39 lines
729 B
Nix
39 lines
729 B
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
programs.infat = {
|
|
enable = true;
|
|
settings = {
|
|
extensions = {
|
|
md = "TextEdit";
|
|
};
|
|
schemes = {
|
|
web = "Safari";
|
|
};
|
|
types = {
|
|
plain-text = "VSCode";
|
|
};
|
|
};
|
|
};
|
|
|
|
test.stubs.infat = { };
|
|
|
|
nmt.script =
|
|
let
|
|
expectedConfigPath = "home-files/.config/infat/config.toml";
|
|
expectedConfigContent = pkgs.writeText "infat.config.expected" ''
|
|
[extensions]
|
|
md = "TextEdit"
|
|
|
|
[schemes]
|
|
web = "Safari"
|
|
|
|
[types]
|
|
plain-text = "VSCode"
|
|
'';
|
|
in
|
|
''
|
|
assertFileExists "${expectedConfigPath}"
|
|
assertFileContent "${expectedConfigPath}" "${expectedConfigContent}"
|
|
'';
|
|
}
|