1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-01 06:31:04 +01:00
home-manager/tests/modules/programs/jujutsu/example-config.nix
Austin Horstman cba2f9ce95 treewide: reformat nixfmt-rfc-style
Reformat repository using new nixfmt-rfc-style.
2025-04-08 08:50:05 -07:00

27 lines
612 B
Nix

{ pkgs, config, ... }:
let
configDir = if pkgs.stdenv.isDarwin then "Library/Application Support" else ".config";
in
{
programs.jujutsu = {
enable = true;
package = config.lib.test.mkStubPackage { };
settings = {
user = {
name = "John Doe";
email = "jdoe@example.org";
};
};
};
nmt.script = ''
assertFileExists 'home-files/${configDir}/jj/config.toml'
assertFileContent 'home-files/${configDir}/jj/config.toml' \
${builtins.toFile "expected.toml" ''
[user]
email = "jdoe@example.org"
name = "John Doe"
''}
'';
}