diff options
author | tdback <tyler@tdback.net> | 2025-01-06 23:03:20 -0500 |
---|---|---|
committer | tdback <tyler@tdback.net> | 2025-01-06 23:03:20 -0500 |
commit | 6de68f7a08aa364d7a69a82d02d8508c5a03a197 (patch) | |
tree | 4c4270f51444387830fee9d9bce72cccccd4d39f | |
parent | 036dd543524a586f90d5d8ce33d55cbe873130cc (diff) |
chore: cleanup syntax
-rw-r--r-- | modules/customs/cgit/default.nix | 26 |
1 files changed, 12 insertions, 14 deletions
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" + ]} + ''; }; } |