Compare commits
5 commits
992c4b4acb
...
9a9991acdc
Author | SHA1 | Date | |
---|---|---|---|
chayleaf | 9a9991acdc | ||
chayleaf | 91182c8e3d | ||
chayleaf | 7e49323705 | ||
chayleaf | e13cd51c3b | ||
chayleaf | 88c2206fb7 |
|
@ -281,6 +281,10 @@ config = lib.mkMerge [
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nixpkgs.config.permittedInsecurePackages = [
|
||||||
|
"olm-3.2.16"
|
||||||
|
];
|
||||||
|
|
||||||
# some packages require a pointer theme
|
# some packages require a pointer theme
|
||||||
home.pointerCursor.gtk.enable = true;
|
home.pointerCursor.gtk.enable = true;
|
||||||
home.pointerCursor.package = pkgs.vanilla-dmz;
|
home.pointerCursor.package = pkgs.vanilla-dmz;
|
||||||
|
|
|
@ -51,6 +51,7 @@
|
||||||
|
|
||||||
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
||||||
"steam-original"
|
"steam-original"
|
||||||
|
"steam-unwrapped"
|
||||||
];
|
];
|
||||||
hardware = {
|
hardware = {
|
||||||
opentabletdriver.enable = true;
|
opentabletdriver.enable = true;
|
||||||
|
|
|
@ -19,7 +19,8 @@ in {
|
||||||
};
|
};
|
||||||
unbound = {
|
unbound = {
|
||||||
enable = true;
|
enable = true;
|
||||||
controlInterface = "/run/unbound/unbound.ctl";
|
# controlInterface = "/run/unbound/unbound.ctl";
|
||||||
|
host = "unix:///run/unbound/unbound.ctl";
|
||||||
listenAddress = netAddresses.lan4;
|
listenAddress = netAddresses.lan4;
|
||||||
group = config.services.unbound.group;
|
group = config.services.unbound.group;
|
||||||
};
|
};
|
||||||
|
|
|
@ -283,13 +283,7 @@ in {
|
||||||
job_name = "local_medium_freq";
|
job_name = "local_medium_freq";
|
||||||
scrape_interval = "15m";
|
scrape_interval = "15m";
|
||||||
static_configs = [ {
|
static_configs = [ {
|
||||||
targets = [
|
targets = [ "127.0.0.1:9548" "127.0.0.1:9198" "127.0.0.1:9173" ];
|
||||||
"127.0.0.1:9548"
|
|
||||||
"127.0.0.1:9198"
|
|
||||||
(let cfg = config.services.matrix-appservice-discord.settings.metrics;
|
|
||||||
in "${lib.quoteListenAddr cfg.host}:${toString cfg.port}")
|
|
||||||
config.services.matrix-sliding-sync.settings.SYNCV3_PROM
|
|
||||||
];
|
|
||||||
labels.machine = "server";
|
labels.machine = "server";
|
||||||
} ];
|
} ];
|
||||||
}
|
}
|
||||||
|
@ -373,9 +367,6 @@ in {
|
||||||
host = "127.0.0.1";
|
host = "127.0.0.1";
|
||||||
port = 9173;
|
port = 9173;
|
||||||
};
|
};
|
||||||
services.matrix-sliding-sync = {
|
|
||||||
settings.SYNCV3_PROM = "[::]:8011";
|
|
||||||
};
|
|
||||||
services.matrix-synapse.settings = {
|
services.matrix-synapse.settings = {
|
||||||
enable_metrics = true;
|
enable_metrics = true;
|
||||||
federation_metrics_domains = [ "matrix.org" ];
|
federation_metrics_domains = [ "matrix.org" ];
|
||||||
|
|
|
@ -15,7 +15,7 @@ in {
|
||||||
http-host = "127.0.0.1";
|
http-host = "127.0.0.1";
|
||||||
http-port = 5739;
|
http-port = 5739;
|
||||||
https-port = 5740;
|
https-port = 5740;
|
||||||
proxy = "edge";
|
proxy-headers = "xforwarded";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
services.nginx.virtualHosts."keycloak.${cfg.domainName}" = {
|
services.nginx.virtualHosts."keycloak.${cfg.domainName}" = {
|
||||||
|
|
|
@ -11,7 +11,6 @@ let
|
||||||
matrixClientJson = {
|
matrixClientJson = {
|
||||||
"m.homeserver".base_url = "https://matrix.${cfg.domainName}";
|
"m.homeserver".base_url = "https://matrix.${cfg.domainName}";
|
||||||
"m.identity_server".base_url = "https://vector.im";
|
"m.identity_server".base_url = "https://vector.im";
|
||||||
"org.matrix.msc3575.proxy".url = "https://matrix.${cfg.domainName}";
|
|
||||||
};
|
};
|
||||||
matrixServerConfigResponse = ''
|
matrixServerConfigResponse = ''
|
||||||
add_header Content-Type application/json;
|
add_header Content-Type application/json;
|
||||||
|
@ -42,8 +41,7 @@ in {
|
||||||
locations = {
|
locations = {
|
||||||
"= /.well-known/matrix/server".extraConfig = matrixServerConfigResponse;
|
"= /.well-known/matrix/server".extraConfig = matrixServerConfigResponse;
|
||||||
"= /.well-known/matrix/client".extraConfig = matrixClientConfigResponse;
|
"= /.well-known/matrix/client".extraConfig = matrixClientConfigResponse;
|
||||||
"~ ^/(_matrix(?!/maubot)|_synapse/client|$)".proxyPass = "http://${lib.quoteListenAddr matrixAddr}:${toString matrixPort}";
|
"/".proxyPass = "http://${lib.quoteListenAddr matrixAddr}:${toString matrixPort}";
|
||||||
"~ ^/(client/|_matrix/client/unstable/org.matrix.msc3575/)".proxyPass = "http://${config.services.matrix-sliding-sync.settings.SYNCV3_BINDADDR}";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -114,13 +112,4 @@ in {
|
||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.matrix-sliding-sync = {
|
|
||||||
enable = true;
|
|
||||||
environmentFile = "/secrets/sliding-sync/env";
|
|
||||||
settings = {
|
|
||||||
SYNCV3_BINDADDR = "[::]:8010";
|
|
||||||
SYNCV3_SERVER = "https://matrix.pavluk.org";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue