From 2ad680ac731ab58d09c628efd12fb307597e6e83 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Fri, 14 Feb 2020 01:17:18 +0100 Subject: nixos/alsa: replace list by attrset in environment.etc --- nixos/modules/services/audio/alsa.nix | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'nixos') diff --git a/nixos/modules/services/audio/alsa.nix b/nixos/modules/services/audio/alsa.nix index 990398e65463..3fe76a165401 100644 --- a/nixos/modules/services/audio/alsa.nix +++ b/nixos/modules/services/audio/alsa.nix @@ -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 ]; -- cgit 1.4.1