nixos/chatterbox: Add Heisenbridge

This commit is contained in:
Jack O'Sullivan 2022-07-22 00:45:25 +01:00
parent 24d3458af2
commit def3d440d0
2 changed files with 27 additions and 0 deletions

View File

@ -129,6 +129,24 @@
allow_guest_access = false;
signing_key_path = config.age.secrets."chatterbox/nul.ie.signing.key".path;
app_service_config_files = [
"/var/lib/heisenbridge/registration.yml"
];
};
};
heisenbridge = {
enable = true;
homeserver = "http://localhost:8008";
owner = "@dev:nul.ie";
namespaces = {
users = [
{
exclusive = true;
regex = "@irc_.*";
}
];
};
};
};

View File

@ -317,6 +317,15 @@ in
}
];
})
(mkIf config.services.heisenbridge.enable {
my.tmproot.persistence.config.directories = [
{
directory = "/var/lib/heisenbridge";
user = "heisenbridge";
group = "heisenbridge";
}
];
})
(mkIf config.my.build.isDevVM {
fileSystems = mkVMOverride {
# Hijack the "root" device for persistence in the VM