fix: import nixosSystem ourselves wich works even if nixpkgs is not a

flake
This commit is contained in:
Patrick 2024-11-03 20:34:13 +01:00
parent 4bcc7dd2a1
commit ba53e1a0be
No known key found for this signature in database
GPG key ID: 451F95EFB8BECD0F

View file

@ -26,7 +26,7 @@ in {
isReadOnly = false;
}
);
nixosConfiguration = inputs.nixpkgs.lib.nixosSystem {
nixosConfiguration = (import "${inputs.nixpkgs}/nixos/lib/eval-config.nix") {
specialArgs = guestCfg.extraSpecialArgs;
prefix = ["nodes" "${config.node.name}-${guestName}" "config"];
system = null;