S3: removed unnecessary gateways

This commit is contained in:
Filippo Berto 2023-08-15 11:57:26 +02:00
parent a02853e64f
commit f4b2644bd1
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056
9 changed files with 60 additions and 62 deletions

View file

@ -23,6 +23,7 @@
./gpg.nix
./info.nix
./jq.nix
./joshuto.nix
./keychain.nix
./lf.nix
./man.nix

50
modules/hm/joshuto.nix Normal file
View file

@ -0,0 +1,50 @@
{ pkgs, ... }:
let tomlGenerate = (pkgs.formats.toml { }).generate; in
{
# TODO: switch to module on next release
home.packages = [ pkgs.unstable_pkgs.joshuto ];
home.shellAliases."fm" = "joshuto --change-directory";
xdg.configFile = {
"johsuto/joshuto.toml".source = tomlGenerate "joshuto.toml" {
scroll_offset = 6;
xdg_open = true;
xdg_open_fork = true;
use_trash = true;
watch_files = true;
display = {
mode = "default";
collapse_preview = true;
column_ratio = [ 1 3 4 ];
show_borders = true;
show_hidden = false;
show_icons = true;
tilde_in_titlebar = true;
line_number_style = "absolute";
linemode = "size";
};
display.sort = {
sort_method = "natural";
case_sensitive = false;
directories_first = true;
reverse = false;
};
search = {
string_case_sensitivity = "insensitive";
glob_case_sensitivity = "sensitive";
fzf_case_sensitivity = "insensitive";
};
tab = {
display_mode = "all";
home_page = "inherit";
};
};
"johsuto/mimetype.toml".source = tomlGenerate "joshuto.toml" {
# xdg_open = true;
# xdg_open_fork = true;
# line_number_style = "absolute";
# tab.home_page = "inherit";
};
};
}

View file

@ -4,6 +4,7 @@
age.secrets.garage_rpc_secret = { file = ../../secrets/garage_rpc_secret.age; owner = "garage"; };
networking.firewall.interfaces."ztmjfdwjkp".allowedTCPPorts = [
3900
3901
];
@ -19,17 +20,17 @@
settings = {
replication_mode = 2;
rpc_secret_file = config.age.secrets.garage_rpc_secret.path;
rpc_bind_addr = "[::]:3901";
rpc_bind_addr = "0.0.0.0:3901";
bootstrap_peers = [ ];
s3_api = {
api_bind_addr = "[::]:3900";
api_bind_addr = "0.0.0.0:3900";
s3_region = "garage";
root_domain = ".s3.bertof.net";
};
s3_web = {
bind_addr = "[::]:3902";
bind_addr = "0.0.0.0:3902";
root_domain = ".web.bertof.net";
};