1
0
mirror of https://github.com/nix-community/home-manager synced 2024-09-12 06:16:33 +02:00
home-manager/tests/modules/programs/jujutsu/example-config.nix
2024-05-11 00:34:09 +02:00

28 lines
528 B
Nix

{ config, ... }:
{
programs.jujutsu = {
enable = true;
package = config.lib.test.mkStubPackage { };
settings = {
user = {
name = "John Doe";
email = "jdoe@example.org";
};
};
};
nmt.script = ''
assertFileExists home-files/.config/jj/config.toml
assertFileContent \
home-files/.config/jj/config.toml \
${
builtins.toFile "expected.toml" ''
[user]
email = "jdoe@example.org"
name = "John Doe"
''
}
'';
}