From 7c19b395ebb8e41d814c64970c3b70ef6377a55b Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 3 Jun 2016 00:30:02 +0200 Subject: [PATCH] Explicitly specify the subsystem for /dev/vboxguest Otherwise systemd gets confused and forgets about device units after reloading. https://github.com/NixOS/nixops/issues/391 https://github.com/systemd/systemd/issues/3423 --- nixos/modules/virtualisation/virtualbox-guest.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/virtualisation/virtualbox-guest.nix b/nixos/modules/virtualisation/virtualbox-guest.nix index 3a10871ce840..59bac24a7537 100644 --- a/nixos/modules/virtualisation/virtualbox-guest.nix +++ b/nixos/modules/virtualisation/virtualbox-guest.nix @@ -77,7 +77,7 @@ in KERNEL=="vboxuser", OWNER="root", GROUP="root", MODE="0666" # Allow systemd dependencies on vboxguest. - KERNEL=="vboxguest", TAG+="systemd" + SUBSYSTEM=="misc", KERNEL=="vboxguest", TAG+="systemd" ''; };