diff --git a/nixos-modules/microvm/optimization.nix b/nixos-modules/microvm/optimization.nix index 52db1a46..a21924a5 100644 --- a/nixos-modules/microvm/optimization.nix +++ b/nixos-modules/microvm/optimization.nix @@ -36,11 +36,7 @@ in config = lib.mkIf (cfg.guest.enable && cfg.optimize.enable) { # Avoids X deps in closure due to dbus dependencies - environment.noXlibs = lib.mkIf ( - (!cfg.graphics.enable) && cfg.hypervisor != "stratovirt" - ) ( - lib.mkDefault true - ); + environment.noXlibs = lib.mkIf (!cfg.graphics.enable) (lib.mkDefault true); # The docs are pretty chonky documentation.enable = lib.mkDefault false; @@ -55,6 +51,12 @@ in "stratovirt" ]); + nixpkgs.overlays = [ + (final: prev: { + stratovirt = prev.stratovirt.override { gtk3 = null; }; + }) + ]; + # networkd is used due to some strange startup time issues with nixos's # homegrown dhcp implementation networking.useNetworkd = lib.mkDefault true;