about summary refs log tree commit diff
diff options
context:
space:
mode:
authorrnhmjoj <rnhmjoj@inventati.org>2020-02-14 01:17:18 +0100
committerrnhmjoj <rnhmjoj@inventati.org>2020-02-14 01:17:18 +0100
commit2ad680ac731ab58d09c628efd12fb307597e6e83 (patch)
treef4370944afa8d4ca0c1279c2f240d4e53c7ce06d
parentc1741fc12a3329cf4c4509f22c60dfd4d54a192f (diff)
downloadnixlib-2ad680ac731ab58d09c628efd12fb307597e6e83.tar
nixlib-2ad680ac731ab58d09c628efd12fb307597e6e83.tar.gz
nixlib-2ad680ac731ab58d09c628efd12fb307597e6e83.tar.bz2
nixlib-2ad680ac731ab58d09c628efd12fb307597e6e83.tar.lz
nixlib-2ad680ac731ab58d09c628efd12fb307597e6e83.tar.xz
nixlib-2ad680ac731ab58d09c628efd12fb307597e6e83.tar.zst
nixlib-2ad680ac731ab58d09c628efd12fb307597e6e83.zip
nixos/alsa: replace list by attrset in environment.etc
-rw-r--r--nixos/modules/services/audio/alsa.nix6
1 files changed, 1 insertions, 5 deletions
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 ];