tpwrules / nixos-apple-silicon

Resources to install NixOS bare metal on Apple Silicon Macs
MIT License
743 stars 73 forks source link

modules/sound: environment.etc breaks for wireplumber #132

Closed cid-chan closed 6 months ago

cid-chan commented 6 months ago

I opened PR #131

This changes fixes my specific issue, but an ls -l on /etc/wireplumber reveals that these directories are still linked.

total 20K
dr-xr-xr-x 2 root root 4,0K Jan  1  1970 bluetooth.lua.d
lrwxrwxrwx 1 root root   88 Jan  1  1970 main.lua.d -> /nix/store/nd55a8h6lq45zz2aq77pwcp3cwsin4s2-asahi-audio-1.6/share/wireplumber/main.lua.d
lrwxrwxrwx 1 root root   90 Jan  1  1970 policy.lua.d -> /nix/store/nd55a8h6lq45zz2aq77pwcp3cwsin4s2-asahi-audio-1.6/share/wireplumber/policy.lua.d
lrwxrwxrwx 1 root root   85 Jan  1  1970 scripts -> /nix/store/nd55a8h6lq45zz2aq77pwcp3cwsin4s2-asahi-audio-1.6/share/wireplumber/scripts
lrwxrwxrwx 1 root root   96 Jan  1  1970 wireplumber.conf.d -> /nix/store/nd55a8h6lq45zz2aq77pwcp3cwsin4s2-asahi-audio-1.6/share/wireplumber/wireplumber.conf.d

Looking at the implementation of the environment.etc-module, this would not change, even if we change the mode of the asahi-audio branch from symlink to an octal, forcing a copy of these files, the etc-package would still be symlinked.

tpwrules commented 6 months ago

Thanks for the report. I've changed to install each file individually which should fix your use case too.

With cooperation from nixpkgs, this can be done more cleanly in the future.