fix nix flake check
2 files changed, 9 insertions, 7 deletions
diff --git a/flake.nix b/flake.nix
index 89a0e209..84936b15 100644
--- a/flake.nix
+++ b/flake.nix
@@ -102,10 +102,6 @@
// {
nixosModules.default = import ./nix/modules/default self;
nixosConfigurations.testVm = import ./nix/testVm/default.nix { inherit self nixpkgs; };
- nixosConfigurations.test = nixpkgs.lib.nixosSystem {
- system = "x86_64-linux";
- modules = [ ];
- };
checks =
let
pkgs = import nixpkgs { system = "x86_64-linux"; };
diff --git a/nix/testVm/vm.nix b/nix/testVm/vm.nix
index d2c4972d..eccd12b2 100644
--- a/nix/testVm/vm.nix
+++ b/nix/testVm/vm.nix
@@ -1,12 +1,14 @@
{
pkgs,
lib,
+ modulesPath,
...
}:
{
imports = [
- # (modulesPath + "/virtualisation/qemu-vm.nix")
+ (modulesPath + "/virtualisation/qemu-vm.nix")
];
+
virtualisation.vmVariant = {
services.xserver.videoDrivers = [ "qxl" ];
services.spice-vdagentd.enable = true;
@@ -20,8 +22,12 @@
virtualisation.memorySize = 8192;
virtualisation.cores = 10;
virtualisation.forwardPorts = [
- # { hostPort = 2222; guestPort = 22; } # Probably shouldn't do this with root:root lol
- { from = "host"; host.port = 8080; guest.port = 80; }
+ # { hostPort = 2222; guestPort = 22; } # Probably shouldn't do this with root:root lol
+ {
+ from = "host";
+ host.port = 8080;
+ guest.port = 80;
+ }
];
networking.useDHCP = lib.mkForce true;
};
|