mirror of
https://github.com/nix-community/home-manager.git
synced 2026-10-02 19:49:18 +00:00
Cover session-variable omission for automatic paths and preservation for custom paths and Darwin Lua-only configurations.
23 lines
675 B
Nix
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"'
|
|
'';
|
|
}
|