Y'shtola (Matrix server) #7

Open
wymiller wants to merge 4 commits from yshtola-build into master
Showing only changes of commit aea71bb49b - Show all commits

View File

@@ -21,7 +21,11 @@
time.timeZone = "America/Detroit"; time.timeZone = "America/Detroit";
# Enable OpenSSH # Enable OpenSSH
services.openssh.enable = true; services.openssh = {
enable = true;
PermitRootLogin = "no";
PasswordAuthentication = "no";
};
# Enable keyring # Enable keyring
services.gnome.gnome-keyring.enable = true; services.gnome.gnome-keyring.enable = true;
@@ -79,7 +83,13 @@
}; };
# Add username to groups "wheel" and "video" - more may be added here later # Add username to groups "wheel" and "video" - more may be added here later
users.users.${userName}.extraGroups = ["wheel" "video" "network"]; users.users.${userName} = {
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFV9eSc9L+aJLoKoexq2f/jb5rpyZnhuGiyhS8YQAbaS wyatt@wyattjmiller.com"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO4WKvKnnYpTbzZHFEslOKyfiiMqWxhW3AfX6E7ACmYU wyatt@wyattjmiller.com"
];
extraGroups = ["wheel" "video" "network"];
};
# fail2ban # fail2ban
services.fail2ban = { services.fail2ban = {
@@ -109,6 +119,9 @@
zstd_compression = true; zstd_compression = true;
new_user_displayname_suffix = ""; new_user_displayname_suffix = "";
max_request_size = 1048575600; # 100MB in bytes, for file uploads max_request_size = 1048575600; # 100MB in bytes, for file uploads
database_path = "/var/lib/tuwunel";
database_backup_path = "/var/lib/tuwunel/database_backups";
database_backups_to_keep = 2;
address = [ address = [
"127.0.0.1" "127.0.0.1"
@@ -128,7 +141,6 @@
}; };
}; };
}; };
# TODO: figure out what goes here
}; };
}; };
@@ -143,10 +155,10 @@
rtc = { rtc = {
use_external_ip = true; use_external_ip = true;
}; };
# TODO: figure out what goes here
}; };
}; };
# Reverse proxy
services.caddy = { services.caddy = {
enable = true; enable = true;
package = pkgs.caddy; package = pkgs.caddy;