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"; description = "Lyns flake";
inputs = { inputs = {
microvm.url = "github:astro/microvm.nix"; 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"; lanzaboote.url = "github:nix-community/lanzaboote/v0.4.1";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
sops-nix.url = "github:Mic92/sops-nix"; sops-nix.url = "github:Mic92/sops-nix";
@ -49,7 +49,6 @@
sops-nix.nixosModules.sops sops-nix.nixosModules.sops
passInputs mkLocalModsInput passInputs mkLocalModsInput
lanzaboote.nixosModules.lanzaboote lanzaboote.nixosModules.lanzaboote
microvm.nixosModules.host
]; ];
}; };
}; };

View file

@ -2,6 +2,7 @@
imports = imports =
[ [
./hardware-configuration.nix ./hardware-configuration.nix
./virtualization.nix
]; ];
lyn.kernel.latest.enable = true; lyn.kernel.latest.enable = true;
lyn.profiles.base.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;
}