Many duplicate paths in nix store with Garuda NixOS module

This question is related to the Garuda NixOS module. I use it on NixOS, but I was told I could post support questions here despite not being on Garuda (Disabling home-manager (#1) · Issues · Garuda Linux 🦅 / Garuda Nix Subsystem · GitLab).
If you’d like to have something to replace garuda-inxi, just let me know.

I noticed I have quite a few duplicate packages in my current system generation, both due to alsa configs.
E.g. libcanberra:

$ nix why-depends /run/current-system/ /nix/store/zkwfjmrrcgpfhy
px74nx40frarnvgq42-libcanberra-0.30
/nix/store/5cmrdj3y2wbxc486vhhqyh2kljkgk8w8-nixos-system-t14g5-colin-garuda-nix-subsystem-24.11.20241105.4aa3656
└───/nix/store/qfm11lbhnf5nmy7baivm2v18bpi1angr-etc
    └───/nix/store/c6axv00bspwamjs19nnswgg0lz3cdnvs-etc-alsa-conf.d-49-pipewire-modules.conf
        └───/nix/store/p5z3l1rmgc3spc1qi2hzfhp0x4xsj6zs-pipewire-1.2.5
            └───/nix/store/zkwfjmrrcgpfhypx74nx40frarnvgq42-libcanberra-0.30
$ nix why-depends /run/current-system/ /nix/store/hz2bzns6ck07xb
jl58182q4wzs7y9ayc-libcanberra-0.30
/nix/store/5cmrdj3y2wbxc486vhhqyh2kljkgk8w8-nixos-system-t14g5-colin-garuda-nix-subsystem-24.11.20241105.4aa3656
└───/nix/store/qfm11lbhnf5nmy7baivm2v18bpi1angr-etc
    └───/nix/store/nknka9rgif83wdqhi7xj8s1m3r2ykj5l-pipewire-1.2.5
        └───/nix/store/hz2bzns6ck07xbjl58182q4wzs7y9ayc-libcanberra-0.30

And libcrackpot:

$ nix why-depends /run/current-system/ /nix/store/r9a2brg6cq6dyd
zcfx2mdrc5m2ij0nc4-cracklib-2.10.0
/nix/store/5cmrdj3y2wbxc486vhhqyh2kljkgk8w8-nixos-system-t14g5-colin-garuda-nix-subsystem-24.11.20241105.4aa3656
└───/nix/store/7bvzsk07az1d9hnpy9d5cpvnizbzmdcd-systemd-256.7
    └───/nix/store/022w6aj3lcffpcn3mjzl40sf8p80vzif-libpwquality-1.4.5-lib
        └───/nix/store/r9a2brg6cq6dydzcfx2mdrc5m2ij0nc4-cracklib-2.10.0
$ nix why-depends /run/current-system/ /nix/store/xpr2v6b5qlkiwz
r2xdiddgsw4fca1qa4-cracklib-2.10.0
/nix/store/5cmrdj3y2wbxc486vhhqyh2kljkgk8w8-nixos-system-t14g5-colin-garuda-nix-subsystem-24.11.20241105.4aa3656
└───/nix/store/qfm11lbhnf5nmy7baivm2v18bpi1angr-etc
    └───/nix/store/c6axv00bspwamjs19nnswgg0lz3cdnvs-etc-alsa-conf.d-49-pipewire-modules.conf
        └───/nix/store/p5z3l1rmgc3spc1qi2hzfhp0x4xsj6zs-pipewire-1.2.5
            └───/nix/store/x9qy9clbn7cxbx26bfj39rfhh2y5lpx3-libcamera-0.3.2
                └───/nix/store/dp4y47xsk15vwyhvxh47hyg5xxxqax51-systemd-256.7
                    └───/nix/store/gzm0yjqfpg7360xdaphw90qghnmh0qkk-libpwquality-1.4.5-lib
                        └───/nix/store/xpr2v6b5qlkiwzr2xdiddgsw4fca1qa4-cracklib-2.10.0

I have restarted since switching to this generation and I don’t have anything audio related in my configuration.nix.

This is not causing issues at the moment, but it probably should not happen. I’m quite new to NixOS, so general tips on finding out why I need those paths would be appreciated.

Thanks!

I do not personally see an obvious reason for why these paths would be duplicates.

However, I should note that it is very unlikely you are losing storage space to these duplicates because of the auto-optimise-store setting we apply by default.

Given that I don’t see an obvious cause of this at a glance, I think this is okay for now. If you like, you can open an issue for this, and we can look into it some other time, but I do not believe this is something you should worry about.

4 Likes

I figured it out. the qt module is including kde 5 packages even if you are on kde 6 for some reason.
I’m setting the QT env vars manually for now.

3 Likes

Probably some precautions, since there are also non-KDE Qt apps around, I’d assume. Great to see you found it out :slight_smile:

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.