{ 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"' ''; }