Skip to content

Commit

Permalink
Use cfg as per convention
Browse files Browse the repository at this point in the history
  • Loading branch information
Shay Bergmann committed May 17, 2022
1 parent d380944 commit 2d66fab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/telegraf.nix
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ in {
};

###### implementation
config = mkIf config.services.telegraf.enable {
config = mkIf cfg.enable {
systemd.services.telegraf = {
description = "Telegraf Agent";
wantedBy = [ "multi-user.target" ];
Expand Down

0 comments on commit 2d66fab

Please sign in to comment.