hosts/kazuki/conduit: config changes

This commit is contained in:
Nikodem Rabuliński 2024-04-13 08:57:06 +02:00
parent 49ec17b3f4
commit 0acac94954
2 changed files with 65 additions and 16 deletions

View file

@ -1,5 +1,6 @@
{
config,
lib,
pkgs,
inputs',
...
@ -13,9 +14,13 @@ in
enable = true;
package = inputs'.settei.packages.conduit-next;
settings.global = {
address = "127.0.0.1";
server_name = "nrab.lol";
database_backend = "rocksdb";
allow_registration = false;
allow_check_for_updates = false;
max_request_size = 100 * 1024 * 1024;
conduit_cache_capacity_modifier = 4.0;
};
};
systemd.services.conduit.serviceConfig.LimitNOFILE = 8192;
@ -68,22 +73,26 @@ in
"matrix.nrab.lol" = {
forceSSL = true;
enableACME = true;
listen = [
{
addr = "0.0.0.0";
port = 80;
}
{
addr = "0.0.0.0";
port = 443;
ssl = true;
}
{
addr = "0.0.0.0";
port = 8448;
ssl = true;
}
];
listen =
let
ports = [
{ port = 80; }
{
port = 443;
ssl = true;
}
{
port = 8448;
ssl = true;
}
];
in
lib.flatten (
map (port: [
(port // { addr = "0.0.0.0"; })
(port // { addr = "[::0]"; })
]) ports
);
extraConfig = ''
merge_slashes off;
'';

View file

@ -48,5 +48,45 @@
};
};
};
xdg.configFile."zellij/layouts/compacter.kdl".text = config.lib.generators.toKDL { } {
layout = {
pane = {
_props.split_direction = "vertical";
pane = [ ];
};
pane = {
_props = {
size = 1;
borderless = true;
};
plugin = {
_props.location = "file:${inputs'.zjstatus.packages.default}/bin/zjstatus.wasm";
hide_frame_for_single_pane = "true";
format_left = "{mode}#[fg=#89B4FA,bg=#181825,bold] {session}#[bg=#181825] {tabs}";
format_right = "#[fg=#424554,bg=#181825]::{datetime}";
format_space = "#[bg=#181825]";
mode_normal = "#[bg=#89B4FA] ";
mode_tmux = "#[bg=#ffc387] ";
mode_default_to_mode = "tmux";
tab_normal = "#[fg=#6C7086,bg=#181825] {index} {name} {fullscreen_indicator}{sync_indicator}{floating_indicator}";
tab_active = "#[fg=#9399B2,bg=#181825,bold,italic] {index} {name} {fullscreen_indicator}{sync_indicator}{floating_indicator}";
tab_fullscreen_indicator = " ";
tab_sync_indicator = " ";
tab_floating_indicator = "󰉈 ";
datetime = "#[fg=#9399B2,bg=#181825] {format} ";
datetime_format = "%A, %d %b %Y %H:%M";
datetime_timezone = "Europe/Warsaw";
};
};
};
};
};
}