From 88017f5a874478dd82f306a5df88c38a8d06fcb6 Mon Sep 17 00:00:00 2001 From: tdback Date: Thu, 16 Jan 2025 19:57:13 -0500 Subject: fix: format flake with `nixfmt-rfc-style` --- modules/services/cgit/default.nix | 8 ++++++-- modules/services/proxy/default.nix | 5 ++++- modules/services/sftpgo/default.nix | 11 ++++++++--- 3 files changed, 18 insertions(+), 6 deletions(-) (limited to 'modules/services') diff --git a/modules/services/cgit/default.nix b/modules/services/cgit/default.nix index 5309e6f..7e2955a 100644 --- a/modules/services/cgit/default.nix +++ b/modules/services/cgit/default.nix @@ -1,10 +1,14 @@ -{ inputs, lib, pkgs, ... }: +{ + inputs, + pkgs, + ... +}: let scanPath = "/tank/git"; domain = "git.tdback.net"; in { - imports = lib.lists.singleton "${inputs.self}/modules/customs/cgit"; + imports = [ "${inputs.self}/modules/customs/cgit" ]; services.cgit = { enable = true; diff --git a/modules/services/proxy/default.nix b/modules/services/proxy/default.nix index e11beab..c70bb54 100644 --- a/modules/services/proxy/default.nix +++ b/modules/services/proxy/default.nix @@ -5,5 +5,8 @@ package = pkgs.caddy; }; - networking.firewall.allowedTCPPorts = [ 80 443 ]; + networking.firewall.allowedTCPPorts = [ + 80 + 443 + ]; } diff --git a/modules/services/sftpgo/default.nix b/modules/services/sftpgo/default.nix index 27318b2..de8b5b1 100644 --- a/modules/services/sftpgo/default.nix +++ b/modules/services/sftpgo/default.nix @@ -1,15 +1,20 @@ -{ config, pkgs, ... }: +{ + config, + lib, + pkgs, + ... +}: { services.sftpgo = { enable = true; package = pkgs.sftpgo; settings = { - httpd.bindings = [{ + httpd.bindings = lib.singleton { port = 8080; address = "0.0.0.0"; enable_web_client = true; enable_web_admin = true; - }]; + }; }; }; -- cgit v1.2.3