You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
home-manager --show-trace switch --flake ~/nixos-config/flake_wimpy#kangus@nixos_vm --impure'```
I get error:
error: builder for '/nix/store/5qqm9gyw7b5m35087wg31kdadgkyady1-home-manager-files.drv' failed with exit code 1;
last 1 log lines:
> Error installing file '.config/micro/settings.json' outside $HOME
For full logs, run 'nix log /nix/store/5qqm9gyw7b5m35087wg31kdadgkyady1-home-manager-files.drv'.error: 1 dependencies of derivation '/nix/store/jm5pghaxg8lvyn032ibhsgjx9ky9dyib-home-manager-generation.drv' failed to build```
# according to reddit forum its wrong because it translates to /home/kangus/home/kangus/.config/micro
home = {
file."${config.home.homeDirectory}/.config/micro" = {
source = config.lib.file.mkOutOfStoreSymlink ""${config.home.homeDirectory}/.dotfiles/.config/micro";
recursive = true;
};
# in flakes the target cannot be nix path type, but string, but probably same error as above, e.g. /home/kangus/home/kangus/.config/micro
home = {
file.".config/micro" = {
source = config.lib.file.mkOutOfStoreSymlink "${builtins.toString config.xdg.configHome}/.dotfiles/.config/micro";
recursive = true;
};
};
EDIT:
This variant doesnt throw error, but creates read only link to store with two levels of indirection
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/
#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
The text was updated successfully, but these errors were encountered: