summaryrefslogtreecommitdiffstats
path: root/nixos/modules
diff options
context:
space:
mode:
authorMichele Guerini Rocco <rnhmjoj@users.noreply.github.com>2020-02-14 09:40:41 +0100
committerGitHub <noreply@github.com>2020-02-14 09:40:41 +0100
commit66b5b299777b5454f90698a456a289614b36dfb2 (patch)
tree6cd694031f485e1a61ccc4a1e1a26e7398d78d7b /nixos/modules
parentae55174fa9cac34f0ee3a95b2e9663e9765c5e8d (diff)
parent2ad680ac731ab58d09c628efd12fb307597e6e83 (diff)
Merge pull request #80076 from rnhmjoj/alsa
nixos/alsa: replace list by attrset in environment.etc
Diffstat (limited to 'nixos/modules')
-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 ];