update nixos-21.11 -> nixos-22.05
This commit is contained in:
parent
6318e66314
commit
7ae8526771
|
@ -39,16 +39,16 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1653229824,
|
||||
"narHash": "sha256-klSCYMpR4TqWYoTD/xZ2qM9UIPRFC6pK+S/kJuVLbFw=",
|
||||
"lastModified": 1653504306,
|
||||
"narHash": "sha256-bqjEskV+/tqOQqSEaCu4e6uWZ0F7ekBiMR16xpn4V0k=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "06db2e2197401b74fcf82d4e84be15b0b5851c7b",
|
||||
"rev": "6efc186e6079ff3f328a2497ff3d36741ac60f6e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"id": "nixpkgs",
|
||||
"ref": "nixos-21.11",
|
||||
"ref": "nixos-22.05",
|
||||
"type": "indirect"
|
||||
}
|
||||
},
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
{
|
||||
inputs = {
|
||||
nixpkgs.url = "nixpkgs/nixos-21.11";
|
||||
nixpkgs.url = "nixpkgs/nixos-22.05";
|
||||
pkgs-unstable.url = "nixpkgs/nixos-unstable";
|
||||
pkgs-gitea.url = "nixpkgs/c777cdf5c564015d5f63b09cc93bef4178b19b01";
|
||||
# pkgs-telegram.url = "nixpkgs/33775ec9a2173a08e46edf9f46c9febadbf743e8";# 2022/04/18; telegram 3.7.3. fails: nix log /nix/store/y5kv47hnv55qknb6cnmpcyraicay79fx-telegram-desktop-3.7.3.drv: g++: fatal error: cannot execute '/nix/store/njk5sbd21305bhr7gwibxbbvgbx5lxvn-gcc-9.3.0/libexec/gcc/aarch64-unknown-linux-gnu/9.3.0/cc1plus': execv: No such file or directory
|
||||
|
|
|
@ -4,19 +4,19 @@
|
|||
|
||||
{
|
||||
services.matrix-synapse.enable = true;
|
||||
services.matrix-synapse.server_name = "uninsane.org";
|
||||
services.matrix-synapse.settings.server_name = "uninsane.org";
|
||||
|
||||
# services.matrix-synapse.enable_registration_captcha = true;
|
||||
# services.matrix-synapse.enable_registration_without_verification = true;
|
||||
services.matrix-synapse.enable_registration = true;
|
||||
services.matrix-synapse.settings.enable_registration = true;
|
||||
# services.matrix-synapse.registration_shared_secret = "<shared key goes here>";
|
||||
|
||||
# default for listeners is port = 8448, tls = true, x_forwarded = false.
|
||||
# we change this because the server is situated behind nginx.
|
||||
services.matrix-synapse.listeners = [
|
||||
services.matrix-synapse.settings.listeners = [
|
||||
{
|
||||
port = 8008;
|
||||
bind_address = "127.0.0.1";
|
||||
bind_addresses = [ "127.0.0.1" ];
|
||||
type = "http";
|
||||
tls = false;
|
||||
x_forwarded = true;
|
||||
|
@ -34,26 +34,45 @@
|
|||
# admin_contact: "admin.matrix@uninsane.org"
|
||||
# '';
|
||||
|
||||
services.matrix-synapse.extraConfig = ''
|
||||
admin_contact: "admin.matrix@uninsane.org"
|
||||
registrations_require_3pid:
|
||||
- email
|
||||
email:
|
||||
smtp_host: "mx.uninsane.org"
|
||||
smtp_port: 587
|
||||
smtp_user: "matrix-synapse"
|
||||
smtp_pass: "${secrets.matrix-synapse.smtp_pass}"
|
||||
require_transport_security: true
|
||||
enable_tls: true
|
||||
notif_from: "%(app)s <notify.matrix@uninsane.org>"
|
||||
app_name: "Uninsane Matrix"
|
||||
enable_notifs: true
|
||||
validation_token_lifetime: 96h
|
||||
invite_client_location: "https://web.matrix.uninsane.org"
|
||||
subjects:
|
||||
email_validation: "[%(server_name)s] Validate your email"
|
||||
'';
|
||||
services.matrix-synapse.app_service_config_files = [
|
||||
services.matrix-synapse.settings.admin_contact = "admin.matrix@uninsane.org";
|
||||
services.matrix-synapse.settings.registrations_require_3pid = [ "email" ];
|
||||
services.matrix-synapse.settings.email = {
|
||||
smtp_host = "mx.uninsane.org";
|
||||
smtp_port = 587;
|
||||
smtp_user = "matrix-synapse";
|
||||
smtp_pass = secrets.matrix-synapse.smtp_pass;
|
||||
require_transport_security = true;
|
||||
enable_tls = true;
|
||||
notif_from = "%(app)s <notify.matrix@uninsane.org>";
|
||||
app_name = "Uninsane Matrix";
|
||||
enable_notifs = true;
|
||||
validation_token_lifetime = "96h";
|
||||
invite_client_location = "https://web.matrix.uninsane.org";
|
||||
subjects = {
|
||||
email_validation = "[%(server_name)s] Validate your email";
|
||||
};
|
||||
};
|
||||
|
||||
# services.matrix-synapse.extraConfigFiles = [builtins.toFile "matrix-synapse-extra-config" ''
|
||||
# admin_contact: "admin.matrix@uninsane.org"
|
||||
# registrations_require_3pid:
|
||||
# - email
|
||||
# email:
|
||||
# smtp_host: "mx.uninsane.org"
|
||||
# smtp_port: 587
|
||||
# smtp_user: "matrix-synapse"
|
||||
# smtp_pass: "${secrets.matrix-synapse.smtp_pass}"
|
||||
# require_transport_security: true
|
||||
# enable_tls: true
|
||||
# notif_from: "%(app)s <notify.matrix@uninsane.org>"
|
||||
# app_name: "Uninsane Matrix"
|
||||
# enable_notifs: true
|
||||
# validation_token_lifetime: 96h
|
||||
# invite_client_location: "https://web.matrix.uninsane.org"
|
||||
# subjects:
|
||||
# email_validation: "[%(server_name)s] Validate your email"
|
||||
# ''];
|
||||
services.matrix-synapse.settings.app_service_config_files = [
|
||||
"/var/lib/matrix-appservice-irc/registration.yml" # auto-created by irc appservice
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user