Skip to content

Commit

Permalink
nixos-modules/microvm/optimization: disable rebuildable configuration…
Browse files Browse the repository at this point in the history
… with the new appliance-building support
  • Loading branch information
astro committed Nov 4, 2023
1 parent 883a67a commit decd604
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion nixos-modules/microvm/optimization.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Closure size and startup time optimization for disposable use-cases
{ config, lib, pkgs, ... }:
{ config, options, lib, pkgs, ... }:

let
cfg = config.microvm;
Expand Down Expand Up @@ -52,5 +52,10 @@ in
# Due to a bug in systemd-networkd: https://github.com/systemd/systemd/issues/29388
# we cannot use systemd-networkd-wait-online.
systemd.network.wait-online.enable = lib.mkDefault false;

# Exclude switch-to-confguration.pl from toplevel.
system = lib.optionalAttrs (options.system ? switch) {
switch.enable = lib.mkDefault false;
};
};
}

0 comments on commit decd604

Please sign in to comment.