summary refs log tree commit diff
path: root/nixos/modules/services/hardware/acpid.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-11-26 18:17:12 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-11-26 18:19:45 +0100
commit2b1f21249445991940c9d3ebbc54ce41b1eaf9c0 (patch)
tree3c7f98ee825b69af81ba7215b6ef2489375e37b3 /nixos/modules/services/hardware/acpid.nix
parentda093461a2ff09d6ea1071ff886866a1f85480c2 (diff)
downloadnixpkgs-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/hardware/acpid.nix')
-rw-r--r--nixos/modules/services/hardware/acpid.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/hardware/acpid.nix b/nixos/modules/services/hardware/acpid.nix
index adba6394dcf..2329f38dfc2 100644
--- a/nixos/modules/services/hardware/acpid.nix
+++ b/nixos/modules/services/hardware/acpid.nix
@@ -110,6 +110,7 @@ in
 
         exec = "acpid --confdir ${acpiConfDir}";
 
+        unitConfig.ConditionVirtualization = "!systemd-nspawn";
         unitConfig.ConditionPathExists = [ "/proc/acpi" ];
       };