Open terxw opened 4 months ago
Have you checked if the contents of the file match that of the file you're trying to source? I've just encountered the same issue with neovim, and it turned out the resulting file was generated by stylix instead of what I was trying to symlink. Disabling the stylix module fixed it.
On a side note, it'd be awesome if hm at least threw a warning in such situations.
@fl42v Thank you! This was the cause of exactly the same issue I was experiencing which led me to this thread. To amplify the results in searches, the exact error I was investigating looked like: Error installing file '.config/nvim/init.lua' outside $HOME
As above, disabling stylix's handling of neovim config files solved it. You can disable neovim as a target specifically with stylix's Home Manager option:
stylix.targets.vim.enable = false;
Are you following the right branch?
Is there an existing issue for this?
Issue description
I am trying to symlink my dotfiles to ~/.config folder, but I cannot get any combination of paths, strings, relative string path, absolute string path to workt with mkOutOfStoreSymlink.
I am using 23.11, flakes, impure
Example config:
Invoking command:
error: builder for '/nix/store/5qqm9gyw7b5m35087wg31kdadgkyady1-home-manager-files.drv' failed with exit code 1; last 1 log lines:
Troubleshooting I tried:
https://www.reddit.com/r/NixOS/comments/197wnuy/help_making_a_direct_symlink_from_config_repo_to/
https://github.com/nix-community/home-manager/issues/2085
Here are variants I tried:
EDIT: This variant doesnt throw error, but creates read only link to store with two levels of indirection
Maintainer CC
No response
System information