move vmvariant to nixos only

This commit is contained in:
Noah Masur 2024-05-09 14:41:54 -04:00
parent a16e3ae3cb
commit 5edd1a50d3
No known key found for this signature in database
3 changed files with 10 additions and 13 deletions

View File

@ -341,9 +341,6 @@
pkgs-caddy = import inputs.nixpkgs-caddy { inherit system; }; pkgs-caddy = import inputs.nixpkgs-caddy { inherit system; };
}; };
modules = import ./hosts/arrow/modules.nix { inherit inputs globals overlays; } ++ [ modules = import ./hosts/arrow/modules.nix { inherit inputs globals overlays; } ++ [
# import
# ./modules/aws
# { inherit inputs; }
( (
{ ... }: { ... }:
{ {

View File

@ -26,6 +26,16 @@ inputs.nixpkgs.lib.nixosSystem rec {
device = "/dev/disk/by-label/boot"; device = "/dev/disk/by-label/boot";
fsType = "vfat"; fsType = "vfat";
}; };
virtualisation.vmVariant = {
virtualisation.forwardPorts = [
{
from = "host";
host.port = 2222;
guest.port = 22;
}
];
};
} }
]; ];
} }

View File

@ -26,16 +26,6 @@
# nix-index seems to eat up too much memory for Vultr # nix-index seems to eat up too much memory for Vultr
home-manager.users.${globals.user}.programs.nix-index.enable = inputs.nixpkgs.lib.mkForce false; home-manager.users.${globals.user}.programs.nix-index.enable = inputs.nixpkgs.lib.mkForce false;
virtualisation.vmVariant = {
virtualisation.forwardPorts = [
{
from = "host";
host.port = 2222;
guest.port = 22;
}
];
};
} }
../../modules/common ../../modules/common
../../modules/nixos ../../modules/nixos