git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/vmware-guest: add display-manager to after and

add ConditionVirtualization and remove unneeded before and wants which are not in the upstream package, the wantedBy should be enough

commit21585dc6836ce68fe181a90f9eff5d77fb79fc3f authorArtturin <Artturin@artturin.com> dateThu 25 Nov 2021, 04:29 (5 years ago) parent1269aeb
1 file changed+3−2
nixos/modules/virtualisation/vmware-guest.nix+3−2
nixos/modules/virtualisation/vmware-guest.nix+3−2
@@ -34,6 +34,8 @@ in
3434 systemd.services.vmware =
3535 { description = "VMWare Guest Service";
3636 wantedBy = [ "multi-user.target" ];
37+ after = [ "display-manager.service" ];
38+ unitConfig.ConditionVirtualization = "vmware";
3739 serviceConfig.ExecStart = "${open-vm-tools}/bin/vmtoolsd";
3840 };
3941
@@ -42,8 +44,7 @@ in
4244 {
4345 description = "VMware vmblock fuse mount";
4446 documentation = [ "https://github.com/vmware/open-vm-tools/blob/master/open-vm-tools/vmblock-fuse/design.txt" ];
45− before = [ "vmware.service" ];
46− wants = [ "vmware.service" ];
47+ unitConfig.ConditionVirtualization = "vmware";
4748 what = "${open-vm-tools}/bin/vmware-vmblock-fuse";
4849 where = "/run/vmblock-fuse";
4950 type = "fuse";