Skip to content

Commit

Permalink
Set microvm nixpkgs path
Browse files Browse the repository at this point in the history
Signed-off-by: Henri Rosten <[email protected]>
  • Loading branch information
henrirosten authored and brianmcgillion committed Jan 31, 2025
1 parent c9b576c commit 5c272bc
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modules/microvm/flake-module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
(import ./virtualization/microvm/appvm.nix { inherit inputs; })
(import ./virtualization/microvm/guivm.nix { inherit inputs; })
(import ./virtualization/microvm/audiovm.nix { inherit inputs; })
./virtualization/microvm/idsvm/idsvm.nix
(import ./virtualization/microvm/idsvm/idsvm.nix { inherit inputs; })
./virtualization/microvm/idsvm/mitmproxy
./virtualization/microvm/modules.nix
./networking.nix
Expand Down
1 change: 1 addition & 0 deletions modules/microvm/virtualization/microvm/adminvm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ in
config = lib.mkIf cfg.enable {
microvm.vms."${vmName}" = {
autostart = true;
inherit (inputs) nixpkgs;
config = adminvmBaseConfiguration // {
imports = adminvmBaseConfiguration.imports ++ cfg.extraModules;
};
Expand Down
1 change: 1 addition & 0 deletions modules/microvm/virtualization/microvm/appvm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ let
in
{
autostart = true;
inherit (inputs) nixpkgs;
config = appvmConfiguration // {
imports = appvmConfiguration.imports ++ cfg.extraModules ++ vm.extraModules ++ appExtraModules;
};
Expand Down
1 change: 1 addition & 0 deletions modules/microvm/virtualization/microvm/audiovm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ in
config = lib.mkIf cfg.enable {
microvm.vms."${vmName}" = {
autostart = true;
inherit (inputs) nixpkgs;
config = audiovmBaseConfiguration // {
imports = audiovmBaseConfiguration.imports ++ cfg.extraModules;
};
Expand Down
1 change: 1 addition & 0 deletions modules/microvm/virtualization/microvm/guivm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ in
config = lib.mkIf cfg.enable {
microvm.vms."${vmName}" = {
autostart = true;
inherit (inputs) nixpkgs;
config = guivmBaseConfiguration // {
boot.kernelPackages =
if config.ghaf.guest.kernel.hardening.graphics.enable then
Expand Down
2 changes: 2 additions & 0 deletions modules/microvm/virtualization/microvm/idsvm/idsvm.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Copyright 2022-2023 TII (SSRC) and the Ghaf contributors
# SPDX-License-Identifier: Apache-2.0
{ inputs }:
{
config,
lib,
Expand Down Expand Up @@ -89,6 +90,7 @@ in
config = lib.mkIf cfg.enable {
microvm.vms."${vmName}" = {
autostart = true;
inherit (inputs) nixpkgs;
config = idsvmBaseConfiguration // {
imports = idsvmBaseConfiguration.imports ++ cfg.extraModules;
};
Expand Down
1 change: 1 addition & 0 deletions modules/microvm/virtualization/microvm/netvm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ in
microvm.vms."${vmName}" = {
autostart = true;
restartIfChanged = false;
inherit (inputs) nixpkgs;
config = netvmBaseConfiguration // {
imports = netvmBaseConfiguration.imports ++ cfg.extraModules;
};
Expand Down

0 comments on commit 5c272bc

Please sign in to comment.