mirror of
https://github.com/spacebarchat/server.git
synced 2026-03-29 09:50:20 +00:00
fix nix flake check
This commit is contained in:
@@ -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"; };
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user