1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00
home-manager/tests/modules/programs/foot/regex-modes.nix
2025-04-13 17:46:54 -05:00

29 lines
592 B
Nix

{ config, ... }:
{
programs.foot = {
enable = true;
package = config.lib.test.mkStubPackage { };
settings = {
"regex:one" = {
regex = "(some regex)";
launch = "echo Regex one works";
};
"regex:two" = {
regex = "(some other regex)";
launch = "echo Second also works!";
};
key-bindings.regex-launch = [
"[one] Shift+Control+1"
"[two] Shift+Control+2"
];
};
};
nmt.script = ''
assertFileContent \
home-files/.config/foot/foot.ini \
${./regex-modes-expected.ini}
'';
}