Files
home-manager/tests/modules/programs/jjui/lua-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

22 lines
614 B
Nix

{ lib, pkgs, ... }:
{
programs.jjui = {
enable = true;
configLua = "function setup(config) end";
};
nmt.script = ''
assertFileExists 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"'
'';
}