2023-01-27 22:15:17 +01:00
|
|
|
{ config, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
programs.jujutsu = {
|
|
|
|
enable = true;
|
|
|
|
package = config.lib.test.mkStubPackage { };
|
|
|
|
settings = {
|
|
|
|
user = {
|
|
|
|
name = "John Doe";
|
|
|
|
email = "jdoe@example.org";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nmt.script = ''
|
2024-03-31 19:57:00 +02:00
|
|
|
assertFileExists home-files/.config/jj/config.toml
|
2023-01-27 22:15:17 +01:00
|
|
|
assertFileContent \
|
2024-03-31 19:57:00 +02:00
|
|
|
home-files/.config/jj/config.toml \
|
2023-01-27 22:15:17 +01:00
|
|
|
${
|
|
|
|
builtins.toFile "expected.toml" ''
|
|
|
|
[user]
|
|
|
|
email = "jdoe@example.org"
|
|
|
|
name = "John Doe"
|
|
|
|
''
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
}
|