mirror of
https://github.com/nix-community/home-manager
synced 2024-11-14 15:19:45 +01:00
28 lines
512 B
Nix
28 lines
512 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/.jjconfig.toml
|
||
|
assertFileContent \
|
||
|
home-files/.jjconfig.toml \
|
||
|
${
|
||
|
builtins.toFile "expected.toml" ''
|
||
|
[user]
|
||
|
email = "jdoe@example.org"
|
||
|
name = "John Doe"
|
||
|
''
|
||
|
}
|
||
|
'';
|
||
|
}
|