aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authortdback <tyler@tdback.net>2025-01-06 23:03:20 -0500
committertdback <tyler@tdback.net>2025-01-06 23:03:20 -0500
commit6de68f7a08aa364d7a69a82d02d8508c5a03a197 (patch)
tree4c4270f51444387830fee9d9bce72cccccd4d39f /modules
parent036dd543524a586f90d5d8ce33d55cbe873130cc (diff)
chore: cleanup syntax
Diffstat (limited to 'modules')
-rw-r--r--modules/customs/cgit/default.nix26
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"
+ ]}
+ '';
};
}