microvm restructuring

This commit is contained in:
Lyn 2024-10-19 02:07:03 +02:00
parent 752b3d4d4c
commit 2bfb4f5c97
4 changed files with 14 additions and 4 deletions

View file

@ -2,7 +2,7 @@
description = "Lyns flake";
inputs = {
microvm.url = "github:astro/microvm.nix";
inputs.microvm.inputs.nixpkgs.follows = "nixpkgs";
microvm.inputs.nixpkgs.follows = "nixpkgs";
lanzaboote.url = "github:nix-community/lanzaboote/v0.4.1";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
sops-nix.url = "github:Mic92/sops-nix";
@ -49,8 +49,7 @@
sops-nix.nixosModules.sops
passInputs mkLocalModsInput
lanzaboote.nixosModules.lanzaboote
microvm.nixosModules.host
];
];
};
};
};

View file

@ -1,7 +1,8 @@
{ config, pkgs, lib, inputs, ... }: with config.lyn.lib; {
imports =
imports =
[
./hardware-configuration.nix
./virtualization.nix
];
lyn.kernel.latest.enable = true;
lyn.profiles.base.enable = true;

View file

@ -0,0 +1,4 @@
{ ... }:{
lyn.profiles.hypervisor.enable = true;
}

View file

@ -0,0 +1,6 @@
{inputs, lib, ...}: {
imports = [
inputs.microvm.nixosModules.host
];
networking.useNetworkd = true;
}