I just edited my home-manager config to use symlinks, but now I’m getting this error. I deleted .config/environment.d hoping that it would fix the issue and or make a new one, but neither happened (I already emptied the trash, womp womp).
home-manager.users.user =
{ config, ... }:
{
file = {
"Assets".source = config.lib.file.mkOutOfStoreSymlink "/home/user/Home/Assets";
"Assets".recursive = true;
"Downloads".source = config.lib.file.mkOutOfStoreSymlink "/home/user/Home/Downloads";
"Downloads".recursive = true;
".config".source = config.lib.file.mkOutOfStoreSymlink "/home/user/Home/.config";
".config".recursive = true;
};
};
};
mkOutOfStoreSymlink doesn’t work with recursive, I believe.
opened 03:35AM - 02 Jun 25 UTC
bug
triage
### Are you following the right branch?
- [x] My Nixpkgs and Home Manager versi… ons are in sync
### Is there an existing issue for this?
- [x] I have searched the existing issues
### Issue description
When I use both mkOutOfStoreSymlink and the xdg.configFile.<name>.recursive option at the same time, recursive will be an invalid option.
For example:
```nix
xdg.configFile."hypr" = {
recursive = true; # invalid
source = config.lib.file.mkOutOfStoreSymlink hyprPath;
force = true;
};
```
I think this is also the cause of this issue (https://github.com/nix-community/home-manager/issues/6370).
### Maintainer CC
_No response_
### System information
```markdown
- system: `"x86_64-linux"`
- host os: `Linux 6.14.7-zen1, NixOS, 25.11 (Xantusia), 25.11.20250528.96ec055`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.28.3`
- nixpkgs: `/nix/store/2q205l7a46885nq31vvji40m30bygzzj-source`
```