diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-11-26 18:17:12 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-11-26 18:19:45 +0100 |
commit | 2b1f21249445991940c9d3ebbc54ce41b1eaf9c0 (patch) | |
tree | 3c7f98ee825b69af81ba7215b6ef2489375e37b3 /nixos/modules/services/audio/alsa.nix | |
parent | da093461a2ff09d6ea1071ff886866a1f85480c2 (diff) | |
download | nixpkgs-2b1f21249445991940c9d3ebbc54ce41b1eaf9c0.tar nixpkgs-2b1f21249445991940c9d3ebbc54ce41b1eaf9c0.tar.gz nixpkgs-2b1f21249445991940c9d3ebbc54ce41b1eaf9c0.tar.bz2 nixpkgs-2b1f21249445991940c9d3ebbc54ce41b1eaf9c0.tar.lz nixpkgs-2b1f21249445991940c9d3ebbc54ce41b1eaf9c0.tar.xz nixpkgs-2b1f21249445991940c9d3ebbc54ce41b1eaf9c0.tar.zst nixpkgs-2b1f21249445991940c9d3ebbc54ce41b1eaf9c0.zip |
Disable various services when running inside a container
Diffstat (limited to 'nixos/modules/services/audio/alsa.nix')
-rw-r--r-- | nixos/modules/services/audio/alsa.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/audio/alsa.nix b/nixos/modules/services/audio/alsa.nix index d021b8bd3ba..c9a2ef4589b 100644 --- a/nixos/modules/services/audio/alsa.nix +++ b/nixos/modules/services/audio/alsa.nix @@ -55,6 +55,7 @@ in { description = "Store Sound Card State"; wantedBy = [ "multi-user.target" ]; unitConfig.RequiresMountsFor = "/var/lib/alsa"; + unitConfig.ConditionVirtualization = "!systemd-nspawn"; serviceConfig = { Type = "oneshot"; RemainAfterExit = true; |