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.
16 lines
480 B
Nix
16 lines
480 B
Nix
{
|
|
programs.jjui = {
|
|
enable = true;
|
|
configDir = "/home/hm-user/custom-jjui";
|
|
configLua = "function setup(config) end";
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileContains home-path/etc/profile.d/hm-session-vars.sh \
|
|
'export JJUI_CONFIG_DIR="/home/hm-user/custom-jjui"'
|
|
assertFileContent home-files/custom-jjui/config.lua \
|
|
${builtins.toFile "jjui-config.lua" "function setup(config) end"}
|
|
assertPathNotExists home-files/custom-jjui/config.toml
|
|
'';
|
|
}
|