mirror of
https://github.com/nix-community/home-manager.git
synced 2026-10-03 12:09:19 +00:00
Cover session-variable omission for automatic paths and preservation for custom paths and Darwin Lua-only configurations.
33 lines
598 B
Nix
33 lines
598 B
Nix
{
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
{
|
|
config = {
|
|
programs.jjui = {
|
|
enable = true;
|
|
package = null;
|
|
settings = {
|
|
revisions.template = "builtin_log_oneline";
|
|
};
|
|
};
|
|
|
|
nmt.script =
|
|
let
|
|
configDir = ".config/jjui";
|
|
in
|
|
''
|
|
assertFileNotRegex home-path/etc/profile.d/hm-session-vars.sh \
|
|
'^export JJUI_CONFIG_DIR='
|
|
|
|
assertFileContent \
|
|
"home-files/${configDir}/config.toml" \
|
|
${pkgs.writeText "expected" ''
|
|
[revisions]
|
|
template = "builtin_log_oneline"
|
|
''}
|
|
'';
|
|
};
|
|
}
|