matrix foo
This commit is contained in:
parent
0357003655
commit
cd2b61f1fb
4 changed files with 20 additions and 22 deletions
16
flake.nix
16
flake.nix
|
|
@ -165,6 +165,22 @@
|
|||
./hosts/monitoring
|
||||
];
|
||||
};
|
||||
nixosConfigurations."www" = nixpkgs.lib.nixosSystem {
|
||||
#system = "x86_64-linux";
|
||||
#pkgs = import nixpkgs { inherit system; };
|
||||
inherit system;
|
||||
modules = [
|
||||
./hosts/www
|
||||
];
|
||||
};
|
||||
nixosConfigurations."git-run" = nixpkgs.lib.nixosSystem {
|
||||
#system = "x86_64-linux";
|
||||
#pkgs = import nixpkgs { inherit system; };
|
||||
inherit system;
|
||||
modules = [
|
||||
./hosts/git-run
|
||||
];
|
||||
};
|
||||
};
|
||||
#);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
{
|
||||
imports = [
|
||||
(modulesPath + "/virtualisation/proxmox-lxc.nix")
|
||||
../../services/node-exporter.nix
|
||||
../services/node-exporter.nix
|
||||
];
|
||||
|
||||
systemd.suppressedSystemUnits = [
|
||||
|
|
|
|||
|
|
@ -8,9 +8,6 @@
|
|||
./nginx.nix
|
||||
./synapse.nix
|
||||
./draupnir.nix
|
||||
../../services/postgres.nix
|
||||
../../services/prometheus.nix
|
||||
../../services/grafana.nix
|
||||
];
|
||||
|
||||
networking = {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
{ config, ... }:
|
||||
|
||||
let
|
||||
domain = "berlin.ccc.de";
|
||||
in
|
||||
{
|
||||
networking.firewall.extraInputRules = ''
|
||||
ip saddr 195.160.173.14 tcp dport 9009 accept
|
||||
|
|
@ -13,9 +10,9 @@ in
|
|||
matrix-synapse = {
|
||||
enable = true;
|
||||
settings = {
|
||||
server_name = domain;
|
||||
public_baseurl = "https://matrix.${domain}:443/";
|
||||
# "/var/lib/matrix-synapse/homeserver.signing.key"
|
||||
server_name = config.networking.domain;
|
||||
public_baseurl = "https://${config.networking.hostName}.${config.networking.domain}:443/";
|
||||
# Creates "/var/lib/matrix-synapse/homeserver.signing.key" on first launch
|
||||
signing_key_path = config.age.secrets.matrix_signing_key.path;
|
||||
registration_shared_secret_path = config.age.secrets.matrix_registration_shared_secret.path;
|
||||
database = {
|
||||
|
|
@ -73,17 +70,5 @@ in
|
|||
};
|
||||
enableRegistrationScript = true;
|
||||
};
|
||||
|
||||
postgresql = {
|
||||
ensureUsers = [
|
||||
{
|
||||
name = config.services.matrix-synapse.settings.database.args.user;
|
||||
ensureDBOwnership = true;
|
||||
}
|
||||
];
|
||||
ensureDatabases = [
|
||||
config.services.matrix-synapse.settings.database.args.database
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue