From df0771e3461594f6fa97bab8077923934b5aeee6 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Thu, 8 Jun 2023 17:43:37 +0200 Subject: [PATCH] infra(epyc): add my key on builder and iperf3 server --- hosts/epyc.nix | 1 + modules/builder.nix | 1 + modules/iperf-server.nix | 6 ++++++ 3 files changed, 8 insertions(+) create mode 100644 modules/iperf-server.nix diff --git a/hosts/epyc.nix b/hosts/epyc.nix index 029b051..efbf696 100644 --- a/hosts/epyc.nix +++ b/hosts/epyc.nix @@ -2,6 +2,7 @@ imports = [ ../modules/ipmi-supermicro.nix ../modules/hardware/supermicro-H12SSL-i.nix + ../modules/iperf-server.nix ]; networking.hostName = "epyc"; diff --git a/modules/builder.nix b/modules/builder.nix index 89833b5..5dc80c8 100644 --- a/modules/builder.nix +++ b/modules/builder.nix @@ -4,6 +4,7 @@ home = "/home/nix"; openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAZpEtSfB0GDwcELc5/AKNiBZJV9OVfQ0BMFzBlF+8Yd raito@everywhere" + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA3hCOyFwuoCLt5W9e9yQSwj9I+VspB0kNNHsoFngbgZ raito@thors" ]; uid = 5001; }; diff --git a/modules/iperf-server.nix b/modules/iperf-server.nix new file mode 100644 index 0000000..2b2a4b5 --- /dev/null +++ b/modules/iperf-server.nix @@ -0,0 +1,6 @@ +{ ... }: { + services.iperf3 = { + enable = true; + openFirewall = true; + }; +}