Files
home-manager/tests/modules/programs/jjui/plugins-only.nix
Austin Horstman a5768f1a46 jjui: test configuration discovery and directory overrides
Cover session-variable omission for automatic paths and preservation for
custom paths and Darwin Lua-only configurations.
2026-09-22 16:00:21 -05:00

23 lines
675 B
Nix

{ lib, pkgs, ... }:
{
programs.jjui = {
enable = true;
plugins.foo = ./foo.lua;
};
nmt.script = ''
assertFileContent home-files/.config/jjui/plugins/foo.lua ${./foo.lua}
assertPathNotExists home-files/.config/jjui/config.lua
assertPathNotExists home-files/.config/jjui/config.toml
''
+ lib.optionalString pkgs.stdenv.hostPlatform.isLinux ''
assertFileNotRegex home-path/etc/profile.d/hm-session-vars.sh \
'^export JJUI_CONFIG_DIR='
''
+ lib.optionalString pkgs.stdenv.hostPlatform.isDarwin ''
assertFileContains home-path/etc/profile.d/hm-session-vars.sh \
'export JJUI_CONFIG_DIR="/home/hm-user/.config/jjui"'
'';
}