le versionierung

This commit is contained in:
Stefan Kempinger 2025-07-23 15:39:09 +02:00
commit c062f35d86
5 changed files with 321 additions and 0 deletions

42
services.nix Normal file
View file

@ -0,0 +1,42 @@
{ config, lib, pkgs, ... }:
{
security.acme = {
acceptTerms = true;
defaults.email = "mail@kempinger.xyz"; # Replace with your email
};
services.resolved.enable = true;
services.nginx = {
enable = true;
recommendedTlsSettings = true;
recommendedOptimisation = true;
recommendedGzipSettings = true;
recommendedProxySettings = true;
virtualHosts."192.168.69.69" = {
default = true;
root = "/srv/website/public_html";
locations."/" = { index = "index.html"; };
};
# Optional: Add a domain-based virtual host
virtualHosts."kempinger.at" = {
root = "/srv/website/public_html";
locations."/" = { index = "index.html"; };
forceSSL = true;
enableACME = true;
};
};
services.vscode-server.enable = true;
# Virtualisation
virtualisation.docker = {
enable = true;
enableOnBoot = true;
rootless = {
enable = true;
setSocketVariable = true;
};
};
}