fix nix flake check

This commit is contained in:
Rory&
2026-03-14 02:08:04 +01:00
parent 8543686a74
commit 249699e6b9
2 changed files with 9 additions and 7 deletions

View File

@@ -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"; };

View File

@@ -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;
};