dotfiles/nixos/boxes/mb1/blog.nix
Cyryl Płotnicki 0ce7360645
Some checks failed
use nix / build (push) Failing after 5m5s
refresh upload key
2024-12-30 15:16:07 +00:00

42 lines
955 B
Nix

{pkgs, ...}: let
path = "/var/www/blog/";
in {
imports = [../nginx.nix];
services.nginx = {
recommendedBrotliSettings = true;
recommendedGzipSettings = true;
recommendedTlsSettings = true;
recommendedOptimisation = true;
package = pkgs.nginxQuic;
virtualHosts = {
"blog.cyplo.dev" = {
forceSSL = true;
enableACME = true;
quic = true;
extraConfig = ''
'';
locations."/" = {
root = path;
};
};
"blog.cyplo.net" = {
forceSSL = true;
enableACME = true;
globalRedirect = "blog.cyplo.dev";
};
};
};
users.extraUsers.blog = {
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICt4yRr0Vl4rkto79Subis0LY8z3+g0VRAM7xf+YfLKO blog@mb1"
];
group = "nginx";
isSystemUser = false;
isNormalUser = true;
home = path;
createHome = true;
homeMode = "750";
};
}