Skip to content

Commit

Permalink
nixos/server/iperf3: init
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Sep 19, 2023
1 parent d2db5da commit ee7788e
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions hosts/hachune-nixos/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ in

nixos.server = {
enable = true;
iperf3.enable = true;
jellyfin.enable = true;
networkd.enable = true;
plex.enable = true;
Expand Down
1 change: 1 addition & 0 deletions hosts/mirai-vps/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
nixos = {
server = {
enable = true;
iperf3.enable = true;
jellyfin.enable = true;
plex.enable = true;
ssh.enable = true;
Expand Down
1 change: 1 addition & 0 deletions nixos/server/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

imports = [
./duckdns-updater.nix
./iperf3.nix
./jellyfin.nix
./networkd.nix
./plex.nix
Expand Down
12 changes: 12 additions & 0 deletions nixos/server/iperf3.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{ config, lib, ... }:

{
options.nixos.server.iperf3.enable = lib.mkEnableOption "IPerf3 config";

config = lib.mkIf config.nixos.server.iperf3.enable {
services.iperf3 = {
enable = true;
openFirewall = true;
};
};
}
1 change: 1 addition & 0 deletions nixos/server/ssh.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{ config, lib, ... }:

let inherit (config.meta) username;
in
{
Expand Down

0 comments on commit ee7788e

Please sign in to comment.