From 5edd1a50d3362de89895e31b7792679715e3dcd0 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Thu, 9 May 2024 14:41:54 -0400 Subject: [PATCH] move vmvariant to nixos only --- flake.nix | 3 --- hosts/arrow/default.nix | 10 ++++++++++ hosts/arrow/modules.nix | 10 ---------- 3 files changed, 10 insertions(+), 13 deletions(-) diff --git a/flake.nix b/flake.nix index a526465..148eb48 100644 --- a/flake.nix +++ b/flake.nix @@ -341,9 +341,6 @@ pkgs-caddy = import inputs.nixpkgs-caddy { inherit system; }; }; modules = import ./hosts/arrow/modules.nix { inherit inputs globals overlays; } ++ [ - # import - # ./modules/aws - # { inherit inputs; } ( { ... }: { diff --git a/hosts/arrow/default.nix b/hosts/arrow/default.nix index 67b8feb..3d19975 100644 --- a/hosts/arrow/default.nix +++ b/hosts/arrow/default.nix @@ -26,6 +26,16 @@ inputs.nixpkgs.lib.nixosSystem rec { device = "/dev/disk/by-label/boot"; fsType = "vfat"; }; + + virtualisation.vmVariant = { + virtualisation.forwardPorts = [ + { + from = "host"; + host.port = 2222; + guest.port = 22; + } + ]; + }; } ]; } diff --git a/hosts/arrow/modules.nix b/hosts/arrow/modules.nix index 05f90b2..699e5cc 100644 --- a/hosts/arrow/modules.nix +++ b/hosts/arrow/modules.nix @@ -26,16 +26,6 @@ # 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; - - virtualisation.vmVariant = { - virtualisation.forwardPorts = [ - { - from = "host"; - host.port = 2222; - guest.port = 22; - } - ]; - }; } ../../modules/common ../../modules/nixos