about summary refs log tree commit diff
path: root/modules/services
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-08-02 00:58:47 +0900
committersefidel <contact@sefidel.net>2023-08-02 00:59:04 +0900
commit502882e92479e998387cd5ca05f326e161059b6a (patch)
tree2e39b5bd6da2378d8f9f84fb07314983f6f12133 /modules/services
parent65e20c47e3f1662b4eaa6331436a4b222bed79f2 (diff)
downloadinfra-502882e92479e998387cd5ca05f326e161059b6a.tar.gz
infra-502882e92479e998387cd5ca05f326e161059b6a.zip
chore: reformat
Diffstat (limited to 'modules/services')
-rw-r--r--modules/services/_template.nix3
-rw-r--r--modules/services/akkoma/default.nix24
-rw-r--r--modules/services/coredns/_corefile.nix2
3 files changed, 14 insertions, 15 deletions
diff --git a/modules/services/_template.nix b/modules/services/_template.nix
index 0607784..26634a4 100644
--- a/modules/services/_template.nix
+++ b/modules/services/_template.nix
@@ -9,6 +9,5 @@ in
     enable = mkEnableOption "";
   };
 
-  config = mkIf cfg.enable {
-  };
+  config = mkIf cfg.enable { };
 }
diff --git a/modules/services/akkoma/default.nix b/modules/services/akkoma/default.nix
index b070d73..3588140 100644
--- a/modules/services/akkoma/default.nix
+++ b/modules/services/akkoma/default.nix
@@ -85,18 +85,18 @@ in
       };
     };
 
-      services.nginx.virtualHosts.${cfg.domain} = {
-        forceSSL = true;
-        useACMEHost = cfg.domain;
+    services.nginx.virtualHosts.${cfg.domain} = {
+      forceSSL = true;
+      useACMEHost = cfg.domain;
 
-        locations."/.well-known/host-meta" = {
-          extraConfig = ''
-            return 301 https://${cfg.realHost}$request_uri;
-          '';
-        };
+      locations."/.well-known/host-meta" = {
+        extraConfig = ''
+          return 301 https://${cfg.realHost}$request_uri;
+        '';
       };
-      environment.persistence."/persist".directories = [
-        "/var/lib/akkoma"
-      ];
     };
-  }
+    environment.persistence."/persist".directories = [
+      "/var/lib/akkoma"
+    ];
+  };
+}
diff --git a/modules/services/coredns/_corefile.nix b/modules/services/coredns/_corefile.nix
index 8d0ec66..84e2165 100644
--- a/modules/services/coredns/_corefile.nix
+++ b/modules/services/coredns/_corefile.nix
@@ -1,3 +1,3 @@
 ''
-Add content here
+  Add content here
 ''