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

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 ];