Skip to content

Commit

Permalink
fixed nix module
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelCoding committed Feb 21, 2024
1 parent 22e428a commit 40f3417
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions module.nix
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{ config, pkgs, lib, ... }:

let
cfg = config.services.sflow_exporter;
cfg = config.services.sflow-exporter;
in
{
options.services.sflow-exporter = {
package = lib.mkOption {
type = lib.types.package;
default = pkgs.sflow_exporter;
default = pkgs.sflow-exporter;
defaultText = lib.literalExpression "pkgs.sflow-exporter";
description = lib.mdDoc "Which sflow_exporzer derivation to use.";
};
Expand Down Expand Up @@ -46,7 +46,6 @@ in

config = lib.mkIf cfg.enable {
environment.systemPackages = [ cfg.package ];
networking.firewall.allowedTCPPorts = lib.mkIf cfg.openFirewall [ cfg.listen.sflow.port ];

systemd.services.sflow-exporter = {
description = "sflow_exporter";
Expand Down
1 change: 1 addition & 0 deletions result

0 comments on commit 40f3417

Please sign in to comment.