|
11 | 11 | inputs.nixpkgs.follows = "nixpkgs"; |
12 | 12 | }; |
13 | 13 |
|
14 | | - # microvm.nix for Firecracker packages and networking patterns |
15 | | - microvm = { |
16 | | - url = "github:astro/microvm.nix"; |
17 | | - inputs.nixpkgs.follows = "nixpkgs"; |
18 | | - }; |
19 | | - |
20 | 14 | # disko for declarative disk partitioning |
21 | 15 | disko = { |
22 | 16 | url = "github:nix-community/disko"; |
|
42 | 36 | nixpkgs, |
43 | 37 | flake-utils, |
44 | 38 | nixos-generators, |
45 | | - microvm, |
46 | 39 | disko, |
47 | 40 | colmena, |
48 | 41 | sops-nix, |
|
73 | 66 | targetSystem = "${hostArch}-linux"; |
74 | 67 | crossTargetSystem = "${crossArch}-linux"; |
75 | 68 |
|
76 | | - # Native pkgs with overlays (for local testing of packages) |
77 | | - pkgsWithOverlays = import nixpkgs { |
78 | | - inherit system; |
79 | | - overlays = [ microvm.overlay ]; |
80 | | - }; |
81 | | - |
82 | 69 | # Helper to build NixOS images using nixos-generators |
83 | 70 | # Uses system argument to let nixos-generators handle pkgs correctly |
84 | 71 | mkImages = targetSys: { |
|
103 | 90 | # Packages: All Linux-only (fireactions/fireteact depend on Linux networking primitives) |
104 | 91 | packages = |
105 | 92 | lib.optionalAttrs isLinux { |
106 | | - fireactions = pkgsWithOverlays.callPackage ./pkgs/fireactions.nix { }; |
107 | | - fireteact = pkgsWithOverlays.callPackage ./pkgs/fireteact.nix { }; |
108 | | - fireglab = pkgsWithOverlays.callPackage ./pkgs/fireglab.nix { }; |
109 | | - firecracker-kernel = pkgsWithOverlays.callPackage ./pkgs/firecracker-kernel.nix { }; |
110 | | - firecracker-kernel-custom = pkgsWithOverlays.callPackage ./pkgs/firecracker-kernel-custom.nix { }; |
111 | | - tc-redirect-tap = pkgsWithOverlays.callPackage ./pkgs/tc-redirect-tap.nix { }; |
112 | | - zot = pkgsWithOverlays.callPackage ./pkgs/zot.nix { }; |
113 | | - default = pkgsWithOverlays.callPackage ./pkgs/fireactions.nix { }; |
| 93 | + fireactions = pkgsNative.callPackage ./pkgs/fireactions.nix { }; |
| 94 | + fireteact = pkgsNative.callPackage ./pkgs/fireteact.nix { }; |
| 95 | + fireglab = pkgsNative.callPackage ./pkgs/fireglab.nix { }; |
| 96 | + firecracker-kernel = pkgsNative.callPackage ./pkgs/firecracker-kernel.nix { }; |
| 97 | + firecracker-kernel-custom = pkgsNative.callPackage ./pkgs/firecracker-kernel-custom.nix { }; |
| 98 | + tc-redirect-tap = pkgsNative.callPackage ./pkgs/tc-redirect-tap.nix { }; |
| 99 | + zot = pkgsNative.callPackage ./pkgs/zot.nix { }; |
| 100 | + default = pkgsNative.callPackage ./pkgs/fireactions.nix { }; |
114 | 101 | } |
115 | 102 | // { |
116 | 103 | # Images - available on all platforms, always target Linux |
|
0 commit comments