helm/hosts/ao/default.nix
Henrik Lissner 327b113a07 refactor!: rename bitwarden -> vaultwarden
Was renamed upstream, in NixOS 21.11.
2021-09-04 00:10:46 +02:00

62 lines
1.2 KiB
Nix

# Ao -- my home development and user-facing server
{ config, lib, ... }:
with lib.my;
{
imports = [
../server.nix
../home.nix
./hardware-configuration.nix
./modules/backup.nix
./modules/gitea.nix
./modules/vaultwarden.nix
];
## Modules
modules = {
shell = {
direnv.enable = true;
git.enable = true;
zsh.enable = true;
};
services = {
fail2ban.enable = true;
ssh.enable = true;
nginx.enable = true;
};
theme.active = "alucard";
};
## Local config
networking.networkmanager.enable = true;
# nginx hosts
services.nginx.virtualHosts."v0.io" = {
default = true;
forceSSL = true;
enableACME = true;
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;
'';
};
};
security.acme.email = "henrik@lissner.net";
}