-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathflake.nix
More file actions
34 lines (30 loc) · 847 Bytes
/
flake.nix
File metadata and controls
34 lines (30 loc) · 847 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
description = "Run a Unikernel on microvm.nix host";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
microvm = {
url = "github:astro/microvm.nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, microvm }: {
nixosModules = rec {
default = solo5-spt;
solo5-spt.imports = [
microvm.nixosModules.microvm-options
./nixos-modules/solo5-spt.nix
];
};
nixosConfigurations.test_net = nixpkgs.lib.evalModules {
specialArgs.pkgs = nixpkgs.legacyPackages.x86_64-linux;
modules = [
self.nixosModules.solo5-spt
./examples/test_net.nix
];
};
packages.x86_64-linux = rec {
default = test_net;
test_net = self.nixosConfigurations.test_net.config.microvm.declaredRunner;
};
};
}