now that home-manager always generates an init.lua we can take the wrapper output instead of reimplemnting stuff in HM (notwithstanding rtp changes that are not needed in HM). This is necessary to keep the provider configuration available after this change https://github.com/NixOS/nixpkgs/pull/487390 Also updated test to reflect ruby disabling
20 lines
363 B
Nix
20 lines
363 B
Nix
{
|
|
imports = [ ./stubs.nix ];
|
|
|
|
programs.neovim = {
|
|
enable = true;
|
|
|
|
initLua = ''
|
|
-- initLua
|
|
'';
|
|
};
|
|
|
|
nmt.script = ''
|
|
initLua="home-files/.config/nvim/init.lua"
|
|
initLuaNormalized="$(normalizeStorePaths "$initLua")"
|
|
|
|
assertFileContent "$initLuaNormalized" ${builtins.toFile "init.lua-expected" ''
|
|
-- initLua
|
|
''}
|
|
'';
|
|
}
|