Merge pull request #80076 from rnhmjoj/alsa

nixos/alsa: replace list by attrset in environment.etc
This commit is contained in:
Michele Guerini Rocco 2020-02-14 09:40:41 +01:00 committed by GitHub
commit 66b5b29977
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -91,11 +91,7 @@ in
environment.systemPackages = [ alsaUtils ];
environment.etc = mkIf (!pulseaudioEnabled && config.sound.extraConfig != "")
[
{ source = pkgs.writeText "asound.conf" config.sound.extraConfig;
target = "asound.conf";
}
];
{ "asound.conf".text = config.sound.extraConfig; };
# ALSA provides a udev rule for restoring volume settings.
services.udev.packages = [ alsaUtils ];