depot/third_party/home-manager/tests/modules/programs/boxxy/example-settings.nix
Default email 75fa0ae5af Project import generated by Copybara.
GitOrigin-RevId: c3ab5ea047e6dc73df530948f7367455749d8906
2023-08-08 12:19:01 +02:00

26 lines
608 B
Nix

{ config, lib, pkgs, ... }:
with lib;
{
config = {
programs.boxxy.enable = true;
programs.boxxy.rules = [{
name = "example rule";
target = "~/Arduino";
rewrite = "~/.local/share/boxxy";
mode = "directory";
only = [ "arduino" "Arduino" ];
env = { "ENVIRONMENT_THING" = "some value"; };
context = [ "/home/test_user/your_project_repo" ];
}];
test.stubs.boxxy = { };
nmt.script = ''
boxxyyaml=home-files/.config/boxxy/boxxy.yaml
assertFileExists $boxxyyaml
assertFileContent $boxxyyaml ${./example-boxxy.yaml}
'';
};
}