Skip to content

Commit 8a8b8c6

Browse files
SuperSandro2000astro
authored andcommitted
stratovirt: fix noXlibs
1 parent d5553b1 commit 8a8b8c6

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

nixos-modules/microvm/optimization.nix

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,7 @@ in
3636

3737
config = lib.mkIf (cfg.guest.enable && cfg.optimize.enable) {
3838
# Avoids X deps in closure due to dbus dependencies
39-
environment.noXlibs = lib.mkIf (
40-
(!cfg.graphics.enable) && cfg.hypervisor != "stratovirt"
41-
) (
42-
lib.mkDefault true
43-
);
39+
environment.noXlibs = lib.mkIf (!cfg.graphics.enable) (lib.mkDefault true);
4440

4541
# The docs are pretty chonky
4642
documentation.enable = lib.mkDefault false;
@@ -55,6 +51,12 @@ in
5551
"stratovirt"
5652
]);
5753

54+
nixpkgs.overlays = [
55+
(final: prev: {
56+
stratovirt = prev.stratovirt.override { gtk3 = null; };
57+
})
58+
];
59+
5860
# networkd is used due to some strange startup time issues with nixos's
5961
# homegrown dhcp implementation
6062
networking.useNetworkd = lib.mkDefault true;

0 commit comments

Comments
 (0)