Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions nixos-modules/host.nix
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ in

flake = mkOption {
description = "Source flake for declarative build";
type = nullOr path;
type = nullOr str;
default = null;
};

Expand Down Expand Up @@ -174,7 +174,7 @@ in
inherit (microvmConfig) flake updateFlake;
isFlake = flake != null;
guestConfig = if isFlake
then flake.nixosConfigurations.${name}.config
then (builtins.getFlake flake).nixosConfigurations.${name}.config
else microvmConfig.config.config;
runner = guestConfig.microvm.declaredRunner;
in
Expand Down