Merge pull request #2727 from jagajaga/alsa_imp

Alsa configuration
This commit is contained in:
Peter Simons 2014-05-23 17:46:33 +02:00
commit 444e3f6d51

View file

@ -9,6 +9,8 @@ let
soundState = "/var/lib/alsa/asound.state";
configPath = "asound.conf";
in
{
@ -35,6 +37,17 @@ in
'';
};
extraConfig = mkOption {
type = types.lines;
default = '''';
example = ''
defaults.pcm.!card 3
'';
description = ''
Set addition configuration for system-wide alsa.
'';
};
};
};
@ -46,6 +59,11 @@ in
environment.systemPackages = [ alsaUtils ];
environment.etc = [ { source = config.sound.extraConfig;
target = configPath;
}
];
# ALSA provides a udev rule for restoring volume settings.
services.udev.packages = [ alsaUtils ];