configuration post-factorisation

merge-requests/18/head
korenstin 2025-06-22 20:51:28 +02:00
parent 549dc069f6
commit 5d99a7fea1
3 changed files with 108 additions and 88 deletions

View File

@ -2,18 +2,35 @@
{ {
imports = [ imports = [
./anubis.nix
./hardware-configuration.nix ./hardware-configuration.nix
./networking.nix ./networking.nix
./reverseproxy.nix ./reverseproxy.nix
../../../modules
../../../modules/services/acme.nix
../../../modules/services/anubis.nix
../../../modules/services/nginx.nix
]; ];
networking.hostName = "reverseproxy"; networking.hostName = "reverseproxy";
boot.loader.grub.devices = [ "/dev/sda" ]; boot.loader.grub.devices = [ "/dev/sda" ];
crans = {
enable = true;
networking = {
id = "51";
srvNat.enable = true;
srv = {
enable = true;
interface = "ens20";
ipv4 = "185.230.79.42";
};
};
resticClient.when = "03:42";
services = {
acme.enable = true;
};
};
system.stateVersion = "25.05"; system.stateVersion = "25.05";
} }

View File

@ -3,7 +3,9 @@
{ {
users.users."nginx".home = "/var/lib/nginx"; users.users."nginx".home = "/var/lib/nginx";
services.nginx.virtualHosts = services.nginx = {
enable = true;
virtualHosts =
let anubisConf = [ let anubisConf = [
{ {
addr = "localhost"; addr = "localhost";
@ -94,4 +96,5 @@
listen = anubisConf; listen = anubisConf;
}; };
}; };
};
} }