nixos

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

default.nix (1028B)


      1 {
      2 	lib,
      3 	pkgs,
      4 	...
      5 }: {
      6 	services.matrix-continuwuity = {
      7 		enable = true;
      8 		package =
      9 			pkgs.matrix-continuwuity.override {
     10 				rocksdb =
     11 					pkgs.rocksdb.overrideAttrs (prev: {
     12 							# needed on btrfs: otherwise rocksdb preallocates too much space and can't free them
     13 							cmakeFlags =
     14 								lib.subtractLists [(lib.cmakeBool "WITH_FALLOCATE" true)] prev.cmakeFlags
     15 								++ [(lib.cmakeBool "WITH_FALLOCATE" false)];
     16 						});
     17 			};
     18 		settings.global = {
     19 			server_name = "tb148.net";
     20 			well_known = {
     21 				client = "https://matrix.tb148.net";
     22 				server = "matrix.tb148.net:443";
     23 				support_email = "me@tb148.net";
     24 				support_mxid = "@me:tb148.net";
     25 			};
     26 			unix_socket_path = "/run/continuwuity/continuwuity.sock";
     27 			unix_socket_perms = 660;
     28 			allow_registration = false;
     29 			allow_encryption = true;
     30 			allow_federation = true;
     31 			trusted_servers = ["matrix.org" "tchncs.de" "envs.net"];
     32 			database_backup_path = "/var/lib/continuwuity/backups";
     33 		};
     34 	};
     35 	users.users.caddy.extraGroups = ["continuwuity"];
     36 }