Add iperf host
This commit is contained in:
parent
0b49bd74a6
commit
2636e6769b
4 changed files with 40 additions and 9 deletions
14
hosts/iperf/configuration.nix
Normal file
14
hosts/iperf/configuration.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{ ... }:
|
||||
{
|
||||
boot.loader.grub = {
|
||||
enable = true;
|
||||
device = "/dev/vda";
|
||||
};
|
||||
|
||||
networking = {
|
||||
hostName = "iperf";
|
||||
firewall.enable = false;
|
||||
};
|
||||
|
||||
system.stateVersion = "23.05";
|
||||
}
|
7
hosts/iperf/default.nix
Normal file
7
hosts/iperf/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./configuration.nix
|
||||
./iperf.nix
|
||||
];
|
||||
}
|
7
hosts/iperf/iperf.nix
Normal file
7
hosts/iperf/iperf.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ ... }:
|
||||
{
|
||||
services.iperf3 = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue