these 4 derivations will be built:
/nix/store/0kw6sk6x7mrhq4p0pac6l80vijmxbff1-user-units.drv
/nix/store/apwvimnnphh38d2xp47s05bm2i2gsk0v-system-units.drv
/nix/store/561lg1xs9klpz6h0qrpp860h54b5qrgb-etc.drv
/nix/store/2lql1yw4r9fwpmlflvd3f0kff8wwhzaz-nixos-system-nixos-23.11pre509514.9e1960bc196b.drv
building '/nix/store/apwvimnnphh38d2xp47s05bm2i2gsk0v-system-units.drv'...
building '/nix/store/0kw6sk6x7mrhq4p0pac6l80vijmxbff1-user-units.drv'...
ln: failed to create symbolic link '/nix/store/2qywk18bv432ca2znk21964hbm1xkl41-user-units/xdg-desktop-portal-hyprland.service': File exists
error: builder for '/nix/store/0kw6sk6x7mrhq4p0pac6l80vijmxbff1-user-units.drv' failed with exit code 1
error: 1 dependencies of derivation '/nix/store/561lg1xs9klpz6h0qrpp860h54b5qrgb-etc.drv' failed to build
error: 1 dependencies of derivation '/nix/store/2lql1yw4r9fwpmlflvd3f0kff8wwhzaz-nixos-system-nixos-23.11pre509514.9e1960bc196b.drv' failed to build
“Modules” in theory only means files like your configuration.nix - the term is sometimes used to mean such files in the nixpkgs repository, and sometimes files from outside the nixpkgs repository. In this case, it’s unclear which @Adrielus meant
So, what they are saying is you can completely remove this part of your configuration, it’s duplicated:
Assuming that somewhere else you have:
programs.hyprland.enable = true;
I don’t know if this will fix the actual problem; symlinking into the nix store is odd, even more so that it tries to do so on a file that already exists. It’s also hard to tell without seeing your whole configuration. Make sure you’re not trying to install hyprland with both your home-manager and NixOS configuration at the same time.
I assumed they were referring to the NixOS module that is available in the Hyprland repo, as up until recently that was the best way to enable it in NixOS.
On my system I have hyprland enabled with NixOS and Home-Manager so that it is available on my login screen and can also be configured through home-manager’s hyprland options.
@sacsbrainz Please post your entire configuration, as we can use it to analyze the error more thoroughly without having to go back and forth.