about summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-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
 ''