From 6de68f7a08aa364d7a69a82d02d8508c5a03a197 Mon Sep 17 00:00:00 2001 From: tdback Date: Mon, 6 Jan 2025 23:03:20 -0500 Subject: chore: cleanup syntax --- modules/customs/cgit/default.nix | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) (limited to 'modules') diff --git a/modules/customs/cgit/default.nix b/modules/customs/cgit/default.nix index dc30d2a..bf852d3 100644 --- a/modules/customs/cgit/default.nix +++ b/modules/customs/cgit/default.nix @@ -24,14 +24,13 @@ let mkCgitAssets = pkg: files: strings.concatStringsSep "\n" ( builtins.map (f: '' - handle_path /${f} { - root * ${pkg}/cgit/${f} - file_server - } + handle_path /${f} { + root * ${pkg}/cgit/${f} + file_server + } '') files ); -in -{ +in { disabledModules = [ "services/networking/cgit.nix" ]; options = { @@ -113,10 +112,9 @@ in socket = { inherit (config.services.caddy) user group; }; }; - services.caddy.virtualHosts.${cfg.virtualHost}.extraConfig = - let - socket = config.services.fcgiwrap.instances.cgit.socket.address; - in '' + services.caddy.virtualHosts.${cfg.virtualHost}.extraConfig = let + socket = config.services.fcgiwrap.instances.cgit.socket.address; + in '' encode zstd gzip reverse_proxy unix/${socket} { @@ -126,9 +124,9 @@ in } } - ${mkCgitAssets cfg.package [ - "cgit.css" "cgit.png" "favicon.ico" "robots.txt" - ]} - ''; + ${mkCgitAssets cfg.package [ + "cgit.css" "cgit.png" "favicon.ico" "robots.txt" + ]} + ''; }; } -- cgit v1.2.3