Skip to content

Commit

Permalink
stratovirt: fix noXlibs
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 authored and astro committed Jan 12, 2024
1 parent d5553b1 commit 8a8b8c6
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions nixos-modules/microvm/optimization.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 8a8b8c6

Please sign in to comment.