microvm restructuring
This commit is contained in:
parent
752b3d4d4c
commit
2bfb4f5c97
4 changed files with 14 additions and 4 deletions
|
@ -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,8 +49,7 @@
|
||||||
sops-nix.nixosModules.sops
|
sops-nix.nixosModules.sops
|
||||||
passInputs mkLocalModsInput
|
passInputs mkLocalModsInput
|
||||||
lanzaboote.nixosModules.lanzaboote
|
lanzaboote.nixosModules.lanzaboote
|
||||||
microvm.nixosModules.host
|
];
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
{ config, pkgs, lib, inputs, ... }: with config.lyn.lib; {
|
{ config, pkgs, lib, inputs, ... }: with config.lyn.lib; {
|
||||||
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;
|
||||||
|
|
4
hosts/supernova/virtualization.nix
Normal file
4
hosts/supernova/virtualization.nix
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{ ... }:{
|
||||||
|
lyn.profiles.hypervisor.enable = true;
|
||||||
|
|
||||||
|
}
|
6
modules/profiles/hypervisor.nix
Normal file
6
modules/profiles/hypervisor.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{inputs, lib, ...}: {
|
||||||
|
imports = [
|
||||||
|
inputs.microvm.nixosModules.host
|
||||||
|
];
|
||||||
|
networking.useNetworkd = true;
|
||||||
|
}
|
Loading…
Reference in a new issue