diff options
Diffstat (limited to 'modules/snorlax/uvm-guests/cpanel.nix')
-rw-r--r-- | modules/snorlax/uvm-guests/cpanel.nix | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/modules/snorlax/uvm-guests/cpanel.nix b/modules/snorlax/uvm-guests/cpanel.nix index 51bc0d2..f59a306 100644 --- a/modules/snorlax/uvm-guests/cpanel.nix +++ b/modules/snorlax/uvm-guests/cpanel.nix @@ -1,20 +1,29 @@ -{ pkgs, ... }: +{ inputs, ... }: { microvm.autostart = [ "cpanel" ]; microvm.vms = { cpanel = { # The package set to use for the microvm. This also determines the microvm's architecture. # Defaults to the host system's package set if not given. - pkgs = import pkgs { system = "x86_64-linux"; }; + # pkgs = import pkgs { system = "x86_64-linux"; }; # (Optional) A set of special arguments to be passed to the MicroVM's NixOS modules. - #specialArgs = {}; + specialArgs = { inherit inputs; }; # The configuration for the MicroVM. # Multiple definitions will be merged as expected. config = { + networking.hostName = "cpanel"; + imports = [ + inputs.home-manager.nixosModules.home-manager + inputs.disko.nixosModules.disko + inputs.nixos-facter-modules.nixosModules.facter + ../../core + ]; + + # It is highly recommended to share the host's nix-store # with the VMs to prevent building huge images. microvm.shares = [{ @@ -25,7 +34,9 @@ }]; microvm.interfaces = [{ - type = "bridge"; + type = "tap"; + id = "cpanel"; + mac = "02:00:00:00:00:01"; }]; # Any other configuration for your MicroVM |