diff --git a/nixos/boxes/colony/vms/shill/containers/chatterbox.nix b/nixos/boxes/colony/vms/shill/containers/chatterbox.nix index 8f0fa2b..d4305f4 100644 --- a/nixos/boxes/colony/vms/shill/containers/chatterbox.nix +++ b/nixos/boxes/colony/vms/shill/containers/chatterbox.nix @@ -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_.*"; + } + ]; }; }; }; diff --git a/nixos/modules/tmproot.nix b/nixos/modules/tmproot.nix index acd182a..04710f3 100644 --- a/nixos/modules/tmproot.nix +++ b/nixos/modules/tmproot.nix @@ -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