From 3090764d1e3b0fdad7992235e8430d4991ce0349 Mon Sep 17 00:00:00 2001 From: Grisha Shipunov Date: Tue, 26 Aug 2025 15:36:36 +0200 Subject: nixosTestRunner regression on nixos-unstable --- flake.nix | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 7f48943..3d6c90b 100644 --- a/flake.nix +++ b/flake.nix @@ -93,14 +93,20 @@ value = nixpkgs-ver.lib.nixosSystem { system = "x86_64-linux"; specialArgs = { inherit inputs; }; - modules = [ - sops-nix.nixosModules.sops - microvm.nixosModules.microvm - - ./hosts/${vm} - ./modules/server - ./modules/wg - ]; + modules = + let + fix-broken-qemu = + if nixpkgs-ver == nixpkgs-unstable then [ { microvm.optimize.enable = false; } ] else [ ]; + in + [ + sops-nix.nixosModules.sops + microvm.nixosModules.microvm + + ./hosts/${vm} + ./modules/server + ./modules/wg + ] + ++ fix-broken-qemu; }; }) vm-list ) -- cgit v1.3.1