Maybe I have to write the file with nix?

This commit is contained in:
Lillian Violet 2024-04-01 18:24:56 +02:00
parent 406ef2fd37
commit f57c4f03b4

View file

@ -6,13 +6,24 @@
...
}: let
port = 2143;
configFile =
pkgs.writeText "config.json"
''
{
"defaultHomeserver": 2,
"homeserverList": [
"matrix.gladtherescake.eu"
],
"allowCustomHomeservers": false
}
'';
in {
#TODO: set default server and disable changing that
virtualisation.oci-containers.containers."cinny" = {
autoStart = true;
ports = ["${toString port}:80"];
volumes = [
"./config.json:/app/config.json"
"${configFile}:/app/config.json"
];
image = "ajbura/cinny:latest";
};