bert: Add isaacswift.com and isaac user

This commit is contained in:
Chandler Swift 2024-11-18 18:14:14 -06:00
parent 41648800ab
commit 0ebcaee45d
Signed by: chandlerswift
GPG key ID: A851D929D52FB93F
3 changed files with 32 additions and 0 deletions

View file

@ -58,6 +58,14 @@
services.openssh.settings.PasswordAuthentication = false;
users.users.root.openssh.authorizedKeys.keys = [''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEhPyyqS3BGYor3zLbjc8hZuhem3mS8TNmvWogXcnz/b chandler@chandlerswift.com'' ];
users.users.isaac = {
isNormalUser = true;
description = "Isaac Swift";
openssh.authorizedKeys.keys = [
# TODO
];
};
networking.firewall.allowedTCPPorts = [
80 # Caddy
443 # Caddy

View file

@ -5,6 +5,7 @@
./git.chandlerswift.com.nix
./harborpaperco.com.nix
./home.chandlerswift.com.nix
./isaacswift.com.nix
./katherineandchandler.com.nix
./maps.chandlerswift.com.nix
./music.chandlerswift.com.nix

View file

@ -0,0 +1,23 @@
{
services.caddy.virtualHosts."isaacswift.com" = {
serverAliases = ["www.isaacswift.com"];
extraConfig = ''
encode zstd gzip
file_server
root * /srv/www/isaacswift.com
# hide .git # ???
handle_errors {
respond "{err.status_code} {err.status_text}"
}
'';
};
systemd.tmpfiles.settings."10-isaacswift-com" = {
"/srv/www/isaacswift.com" = {
d = {
user = "isaac";
};
};
};
}