From 4db4628f76a3721de945936f0b98bf69fd4d9aaf Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Sun, 29 Dec 2024 21:50:40 +0100 Subject: [PATCH] nixos/services.opentracker: remove `with lib;` --- nixos/modules/services/torrent/opentracker.nix | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/nixos/modules/services/torrent/opentracker.nix b/nixos/modules/services/torrent/opentracker.nix index 518830d4c279..22938e9359d4 100644 --- a/nixos/modules/services/torrent/opentracker.nix +++ b/nixos/modules/services/torrent/opentracker.nix @@ -4,19 +4,17 @@ pkgs, ... }: - -with lib; let cfg = config.services.opentracker; in { options.services.opentracker = { - enable = mkEnableOption "opentracker"; + enable = lib.mkEnableOption "opentracker"; - package = mkPackageOption pkgs "opentracker" { }; + package = lib.mkPackageOption pkgs "opentracker" { }; - extraOptions = mkOption { - type = types.separatedString " "; + extraOptions = lib.mkOption { + type = lib.types.separatedString " "; description = '' Configuration Arguments for opentracker See https://erdgeist.org/arts/software/opentracker/ for all params