Skip to content

Commit

Permalink
base: update ethtool-setringmax, disable prom exporter gw test for now
Browse files Browse the repository at this point in the history
  • Loading branch information
mkg20001 committed Mar 23, 2024
1 parent 8ed3de7 commit 1629b54
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
6 changes: 4 additions & 2 deletions modules/defaults/misc.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{
security.sudo.enable = false;
users.mutableUsers = false;
networking.useDHCP = true;
networking.useNetworkd = true;
boot.initrd.systemd.enable = true;

# todo: su exec only possible in root group

# network
networking.useDHCP = true;
networking.useNetworkd = true;

# firewall
networking.firewall.enable = true;
networking.nftables.enable = true;
Expand Down
2 changes: 1 addition & 1 deletion modules/ethtool-setringmax.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ with lib;
serviceConfig = {
Description = "Set Ring Parameters for Network Interfaces";
Type = "oneshot";
ExecStart = "${pkgs.ethtool-setringmax}/bin/ethtool-setringmax";
ExecStart = getExe pkgs.ethtool-setringmax;
RemainAfterExit = true;
};
};
Expand Down
5 changes: 5 additions & 0 deletions pkgs/ethtool-setringmax/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,9 @@ stdenv.mkDerivation {
install -D ethtool-setringmax $out/bin/ethtool-setringmax
install -D ethtool-setringmax.awk $out/libexec/ethtool-setringmax.awk
'';

meta = {
mainProgram = "ethtool-setringmax";
maintainers = with lib.maintainers; [ mkg20001 ];
};
}
6 changes: 3 additions & 3 deletions tests/prometheus-exporters.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ inputs: mod: { pkgs, lib, ... }:
source = { lib, pkgs, ... }: {
imports = mod.default;

services.nginx.enable = true;
# services.nginx.enable = true;
services.prometheus.exporters.node.enable = true;
};

Expand All @@ -21,7 +21,7 @@ inputs: mod: { pkgs, lib, ... }:

testScript = ''
start_all()
source.wait_for_unit("nginx")
monitoring.execute("curl https://source:9433")
# source.wait_for_unit("nginx")
# monitoring.execute("curl https://source:9000")
'';
}

0 comments on commit 1629b54

Please sign in to comment.