Added wastring.com

This commit is contained in:
fwastring 2025-09-11 14:45:41 +02:00
parent b33636b24d
commit 22f598ec50
6 changed files with 41 additions and 13 deletions

View file

@ -2,13 +2,6 @@
{
programs.ssh = {
enable = true;
knownHosts = {
desktop = {
extraHostNames = [ "192.168.1.227" ];
publicKeyFile = ./pubkeys/myhost_ssh_host_dsa_key.pub;
};
}
;
matchBlocks = {
"lth" = {
hostname = "login.student.lth.se";

View file

@ -3,17 +3,20 @@
}:
{
networking.firewall = {
allowedTCPPorts = [ 80 443 ];
};
networking.firewall = {
allowedTCPPorts = [
80
443
];
};
security.acme = {
acceptTerms = true;
defaults.email = "fredrik@wastring.com";
certs."pass.wastring.com" = {
dnsProvider = "gandiv5";
webroot = null;
credentialsFile = /run/secrets/gandi_key;
dnsPropagationCheck = true;
credentialsFile = /run/secrets/gandi_key;
dnsPropagationCheck = true;
};
};
services.nginx = {

21
moduler/wastring.nix Normal file
View file

@ -0,0 +1,21 @@
{ config, inputs, pkgs, ... }:
let
in
{
security.acme = {
certs."wastring.com" = {
dnsProvider = "gandiv5";
webroot = null;
credentialsFile = /run/secrets/gandi_key;
dnsPropagationCheck = true;
};
};
services.nginx = {
virtualHosts."wastring.com" = {
enableACME = true;
forceSSL = true;
root = "/var/www/wastring.com";
};
};
}