mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
29 lines
565 B
Nix
29 lines
565 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
{
|
|
config = {
|
|
programs.jjui = {
|
|
enable = true;
|
|
settings = {
|
|
revisions = {
|
|
template = "builtin_log_compact";
|
|
revset = "ancestors(@ | heads(remote_branches())) ~ empty()";
|
|
};
|
|
};
|
|
};
|
|
|
|
nmt.script =
|
|
let
|
|
configDir = if !pkgs.stdenv.isDarwin then ".config/jjui" else "Library/Application Support/jjui";
|
|
in
|
|
''
|
|
assertFileContent \
|
|
"home-files/${configDir}/config.toml" \
|
|
${./example-settings-expected.toml}
|
|
'';
|
|
};
|
|
}
|