summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-03-14 02:08:04 +0100
committerRory& <root@rory.gay>2026-03-14 02:08:04 +0100
commit249699e6b981bef2d86d2a05a959c4b8cf751ff0 (patch)
tree78bf48b404cba7bd6e9ef61cdba7b644d84fa74d
parentfix nixos tests (diff)
downloadserver-ts-249699e6b981bef2d86d2a05a959c4b8cf751ff0.tar.xz
fix nix flake check
-rw-r--r--flake.nix4
-rw-r--r--nix/testVm/vm.nix12
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; };