nixos/alsa: replace list by attrset in environment.etc

This commit is contained in:
rnhmjoj 2020-02-14 01:17:18 +01:00
parent c1741fc12a
commit 2ad680ac73
No known key found for this signature in database
GPG Key ID: BFBAF4C975F76450

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