[Nix-dev] Creating .asoundrc or other files within configuration.nix?

Cillian de Róiste cillian.deroiste at gmail.com
Mon Jun 4 12:18:33 CEST 2012


On Sun, Jun 3, 2012 at 8:47 AM, Marc Weber <marco-oweber at gmx.de> wrote:
> Excerpts from Sol Reynolds's message of Sun Jun 03 08:01:36 +0200 2012:
>> I'm trying to figure out if it's possible to create an .asoundrc
>> from configuration.nix.  Any advice if this is a futile quest?
>
> Well there is /etc/skel/ which let's you add files which will be copied
> to each home directory.
>
> Its important to think about whether you need symlinks or files.
> files can be edited by users - symlinks to /etc/skel will always
> represent current generation contents ..
>
> That's all which comes to my mind.
>
> Maybe alsa* tools already read a global configuration first ( I forgot)
> or can be patched to do so.

Yes, indeed. nixos/modules/config/pulseaudio.nix creates
/etc/asound.conf to configure ALSA applications to use PulseAudio.
This might be a good starting point. It would be useful to be able to
write a custom one so you could determine the default sound card to
use etc.

Cheers,
Cillian

>
> Marc Weber
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev


More information about the nix-dev mailing list