🎨 nixpkgs-fmt

This commit is contained in:
2022-05-06 20:01:04 -04:00
parent be14e0698c
commit ea5ba53e3c
9 changed files with 187 additions and 164 deletions

View File

@ -2,7 +2,8 @@
with lib;
let cfg = config.walkah.coredns;
in {
in
{
options.walkah.coredns = {
enable = mkEnableOption "";
addr = mkOption {

View File

@ -1,7 +1,8 @@
{ config, lib, pkgs, ... }:
let cfg = config.services.gitea;
in {
in
{
users.users.git = {
description = "Gitea Service";
home = cfg.stateDir;

View File

@ -22,7 +22,8 @@ let
}
];
in {
in
{
imports = [ ./default.nix ];
environment.systemPackages = with pkgs; [ ipfs-migrator ];

View File

@ -15,20 +15,23 @@
enableACME = true;
locations."= /.well-known/matrix/server".extraConfig =
let server = { "m.server" = "matrix.walkah.chat:443"; };
in ''
in
''
default_type application/json;
add_header Access-Control-Allow-Origin *;
return 200 '${builtins.toJSON server}';
'';
locations."= /.well-known/matrix/client".extraConfig = let
client = {
"m.homeserver" = { "base_url" = "https://matrix.walkah.chat"; };
};
in ''
default_type application/json;
add_header Access-Control-Allow-Origin *;
return 200 '${builtins.toJSON client}';
'';
locations."= /.well-known/matrix/client".extraConfig =
let
client = {
"m.homeserver" = { "base_url" = "https://matrix.walkah.chat"; };
};
in
''
default_type application/json;
add_header Access-Control-Allow-Origin *;
return 200 '${builtins.toJSON client}';
'';
locations."/" = { root = pkgs.element-web; };
};
};