mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-12 04:19:22 +08:00
devices.test-pc: test bridge network
This commit is contained in:
@@ -16,7 +16,7 @@ inputs:
|
||||
rollingRootfs = {};
|
||||
};
|
||||
nixpkgs.march = "znver4";
|
||||
networking = {};
|
||||
networking = { dhcp = [ "enp1s0" ]; bridge.nixvirt.devs = [ "enp1s0" ]; };
|
||||
};
|
||||
hardware.cpus = [ "amd" ];
|
||||
services =
|
||||
@@ -33,8 +33,7 @@ inputs:
|
||||
cpu.count = 4;
|
||||
network =
|
||||
{
|
||||
address = 2;
|
||||
portForward = { tcp = [{ host = 5693; guest = 22; }]; web = [ "example.chn.moe" ]; };
|
||||
bridge = true;
|
||||
};
|
||||
};
|
||||
chn2 =
|
||||
|
||||
Reference in New Issue
Block a user