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 a3a311d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions module.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ config, pkgs, lib, ... }:

let
cfg = config.services.sflow_exporter;
cfg = config.services.sflow-exporter;
in
{
options.services.sflow-exporter = {
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

0 comments on commit a3a311d

Please sign in to comment.