diff --git a/flake.nix b/flake.nix index 397ce85..21a3645 100644 --- a/flake.nix +++ b/flake.nix @@ -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 - ]; + ]; }; }; }; diff --git a/hosts/supernova/default.nix b/hosts/supernova/default.nix index ea6a3a1..01def96 100644 --- a/hosts/supernova/default.nix +++ b/hosts/supernova/default.nix @@ -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; diff --git a/hosts/supernova/virtualization.nix b/hosts/supernova/virtualization.nix new file mode 100644 index 0000000..ec6f167 --- /dev/null +++ b/hosts/supernova/virtualization.nix @@ -0,0 +1,4 @@ +{ ... }:{ + lyn.profiles.hypervisor.enable = true; + +} \ No newline at end of file diff --git a/modules/profiles/hypervisor.nix b/modules/profiles/hypervisor.nix new file mode 100644 index 0000000..d069c0e --- /dev/null +++ b/modules/profiles/hypervisor.nix @@ -0,0 +1,6 @@ +{inputs, lib, ...}: { + imports = [ + inputs.microvm.nixosModules.host + ]; + networking.useNetworkd = true; +}