about summary refs log tree commit diff
path: root/nixos/modules/virtualisation
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@sap.com>2022-10-26 11:18:36 +0200
committerSandro Jäckel <sandro.jaeckel@gmail.com>2022-10-26 19:24:14 +0200
commit7fe3f63da657f852a93a31108b6d058c68af884d (patch)
tree5e0f73e9571feafbb41d806c3e7bf33cf820c7a1 /nixos/modules/virtualisation
parent8191089900837e16cf53348a5c66d45306986474 (diff)
nixos/udev: add enable option
Diffstat (limited to 'nixos/modules/virtualisation')
-rw-r--r--nixos/modules/virtualisation/container-config.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/modules/virtualisation/container-config.nix b/nixos/modules/virtualisation/container-config.nix
index 94f28ea80d094..a7f5044fb9cdb 100644
--- a/nixos/modules/virtualisation/container-config.nix
+++ b/nixos/modules/virtualisation/container-config.nix
@@ -16,6 +16,9 @@ with lib;
     # Containers should be light-weight, so start sshd on demand.
     services.openssh.startWhenNeeded = mkDefault true;
 
+    # containers do not need to setup devices
+    services.udev.enable = false;
+
     # Shut up warnings about not having a boot loader.
     system.build.installBootLoader = lib.mkDefault "${pkgs.coreutils}/bin/true";