bert: Add isaacswift.com and isaac user
This commit is contained in:
parent
41648800ab
commit
0ebcaee45d
|
@ -58,6 +58,14 @@
|
||||||
services.openssh.settings.PasswordAuthentication = false;
|
services.openssh.settings.PasswordAuthentication = false;
|
||||||
users.users.root.openssh.authorizedKeys.keys = [''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEhPyyqS3BGYor3zLbjc8hZuhem3mS8TNmvWogXcnz/b chandler@chandlerswift.com'' ];
|
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 = [
|
networking.firewall.allowedTCPPorts = [
|
||||||
80 # Caddy
|
80 # Caddy
|
||||||
443 # Caddy
|
443 # Caddy
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
./git.chandlerswift.com.nix
|
./git.chandlerswift.com.nix
|
||||||
./harborpaperco.com.nix
|
./harborpaperco.com.nix
|
||||||
./home.chandlerswift.com.nix
|
./home.chandlerswift.com.nix
|
||||||
|
./isaacswift.com.nix
|
||||||
./katherineandchandler.com.nix
|
./katherineandchandler.com.nix
|
||||||
./maps.chandlerswift.com.nix
|
./maps.chandlerswift.com.nix
|
||||||
./music.chandlerswift.com.nix
|
./music.chandlerswift.com.nix
|
||||||
|
|
23
bert/services/http/isaacswift.com.nix
Normal file
23
bert/services/http/isaacswift.com.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue