23 lines
629 B
Nix
23 lines
629 B
Nix
|
# Example flake.nix
|
||
|
{
|
||
|
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||
|
inputs.microvm.url = "github:astro/microvm.nix";
|
||
|
inputs.microvm.inputs.nixpkgs.follows = "nixpkgs";
|
||
|
|
||
|
outputs = { self, nixpkgs, microvm }: {
|
||
|
# Example nixosConfigurations entry
|
||
|
nixosConfigurations.my-microvm = nixpkgs.lib.nixosSystem {
|
||
|
system = "x86_64-linux";
|
||
|
modules = [
|
||
|
# Include the microvm module
|
||
|
microvm.nixosModules.microvm
|
||
|
# Add more modules here
|
||
|
{
|
||
|
networking.hostName = "my-microvm";
|
||
|
microvm.hypervisor = "cloud-hypervisor";
|
||
|
}
|
||
|
];
|
||
|
};
|
||
|
};
|
||
|
}
|