File tree Expand file tree Collapse file tree
pkgs/by-name/ma/matrix-continuwuity Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{ lib , ... } :
22let
33 name = "continuwuity" ;
4+ user = "alice" ;
5+ pass = "my-secret-password" ;
46in
57{
68 inherit name ;
1214 settings . global = {
1315 server_name = name ;
1416 address = [ "0.0.0.0" ] ;
15- allow_registration = true ;
16- yes_i_am_very_very_sure_i_want_an_open_registration_server_prone_to_abuse = true ;
17+ admin_execute = [ "users create ${ user } ${ pass } " ] ;
1718 } ;
1819 extraEnvironment . RUST_BACKTRACE = "yes" ;
1920 } ;
3031
3132 async def main() -> None:
3233 # Connect to continuwuity
33- client = nio.AsyncClient("http://continuwuity:6167", "alice")
34-
35- # Register as user alice
36- response = await client.register("alice", "my-secret-password")
34+ client = nio.AsyncClient("http://continuwuity:6167", "${ user } ")
3735
3836 # Log in as user alice
39- response = await client.login("my-secret-password ")
37+ response = await client.login("${ pass } ")
4038
4139 # Create a new room
4240 response = await client.room_create(federate=False)
Original file line number Diff line number Diff line change 7272in
7373rustPlatform . buildRustPackage ( finalAttrs : {
7474 pname = "matrix-continuwuity" ;
75- version = "0.5.4 " ;
75+ version = "0.5.5 " ;
7676
7777 src = fetchFromGitea {
7878 domain = "forgejo.ellis.link" ;
7979 owner = "continuwuation" ;
8080 repo = "continuwuity" ;
8181 tag = "v${ finalAttrs . version } " ;
82- hash = "sha256-E2BJh0ynzUm3gHJXM0qKIgTyEEMD02PG+uPPdr/MKaQ =" ;
82+ hash = "sha256-mEdhnyzuW2fTP/dBpJE6EnvTH2fbQXOOwZgjJ1trQmU =" ;
8383 } ;
8484
85- cargoHash = "sha256-yPQxEZwMQv7HqlQzQxwGrUzZOL21cfNymkNdkOA4GIk =" ;
85+ cargoHash = "sha256-giG4SZNh7uV7PIeHv0npfkgYi6lWn55YktKHOF7HGyM =" ;
8686
8787 nativeBuildInputs = [
8888 pkg-config
You can’t perform that action at this time.
0 commit comments