From abc5c7cfd25f9bc75420f61b849c9d4729f2787d Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Wed, 12 Feb 2025 12:36:33 -0600 Subject: [PATCH] format and remove unused --- .../nixos/services/haproxy/default.nix | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/nixos/modules/nixos/services/haproxy/default.nix b/nixos/modules/nixos/services/haproxy/default.nix index 5876a7c..29ae99f 100644 --- a/nixos/modules/nixos/services/haproxy/default.nix +++ b/nixos/modules/nixos/services/haproxy/default.nix @@ -4,27 +4,26 @@ pkgs, ... }: -with lib; -let +with lib; let cfg = config.mySystem.services.haproxy; - serviceUser = "named"; -in -{ +in { options.mySystem.services.haproxy = { - enable = mkEnableOption "haproxy" // { - default = false; - }; - package = mkPackageOption pkgs "haproxy" { }; + enable = + mkEnableOption "haproxy" + // { + default = false; + }; + package = mkPackageOption pkgs "haproxy" {}; config = mkOption { type = types.str; }; tcpPorts = mkOption { type = types.listOf types.int; - default = [ ]; + default = []; }; udpPorts = mkOption { type = types.listOf types.int; - default = [ ]; + default = []; }; };