mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
30 lines
568 B
Nix
30 lines
568 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
{
|
|
config = {
|
|
programs.jjui = {
|
|
enable = true;
|
|
package = null;
|
|
settings = {
|
|
revisions.template = "builtin_log_oneline";
|
|
};
|
|
};
|
|
|
|
nmt.script =
|
|
let
|
|
configDir = if !pkgs.stdenv.isDarwin then ".config/jjui" else "Library/Application Support/jjui";
|
|
in
|
|
''
|
|
assertFileContent \
|
|
"home-files/${configDir}/config.toml" \
|
|
${pkgs.writeText "expected" ''
|
|
[revisions]
|
|
template = "builtin_log_oneline"
|
|
''}
|
|
'';
|
|
};
|
|
}
|