helm/hosts/ao/default.nix

61 lines
1.2 KiB
Nix
Raw Normal View History

# Ao -- my home development and user-facing server
2020-01-12 15:17:17 -08:00
{ config, lib, ... }:
with lib.my;
2020-01-12 15:17:17 -08:00
{
2020-10-26 02:48:12 -07:00
imports = [
2021-02-20 19:50:43 -08:00
../server.nix
../home.nix
2020-10-26 02:48:12 -07:00
./hardware-configuration.nix
2021-01-20 00:43:03 -08:00
2021-03-11 21:46:33 -08:00
./modules/backup.nix
2021-01-20 00:43:03 -08:00
./modules/gitea.nix
./modules/bitwarden.nix
2020-10-26 02:48:12 -07:00
];
2020-01-12 15:17:17 -08:00
2021-01-20 00:43:03 -08:00
## Modules
2020-03-28 22:48:43 -07:00
modules = {
2021-01-20 00:43:03 -08:00
shell = {
git.enable = true;
zsh.enable = true;
};
services = {
fail2ban.enable = true;
ssh.enable = true;
nginx.enable = true;
};
theme.active = "alucard";
2020-03-28 22:48:43 -07:00
};
## Local config
2020-01-12 15:17:17 -08:00
networking.networkmanager.enable = true;
# nginx hosts
2021-01-20 00:43:03 -08:00
services.nginx.virtualHosts."v0.io" = {
default = true;
forceSSL = true;
enableACME = true;
2021-02-27 20:03:59 -08:00
locations = {
"~* \.(?:ico|css|map|js|gif|jpe?g|png|ttf|woff)$".extraConfig = ''
access_log off;
expires 30d;
add_header Pragma public;
add_header Cache-Control "public, mustrevalidate, proxy-revalidate";
proxy_pass http://kiiro:8000;
proxy_buffering off;
'';
"/".extraConfig = ''
client_max_body_size 10m;
proxy_pass http://kiiro:8000;
proxy_buffering off;
proxy_redirect off;
'';
};
2020-01-17 01:22:50 -08:00
};
2021-01-20 00:43:03 -08:00
security.acme.email = "henrik@lissner.net";
2020-01-12 15:17:17 -08:00
}