group options together

This commit is contained in:
goeranh 2026-02-27 19:55:59 +01:00
parent 815ecd972f
commit 5c82694beb
No known key found for this signature in database

View file

@ -28,22 +28,27 @@ in
./hardware-configuration.nix
];
networking.hostName = "git";
networking.interfaces.ens18.ipv4.addresses = [
networking = {
hostName = "git";
interfaces.ens18.ipv4.addresses = [
{
address = "141.56.51.97";
prefixLength = 24;
}
];
networking.defaultGateway.address = "141.56.51.254";
networking.nameservers = [
"9.9.9.9"
"1.1.1.1"
defaultGateway.address = "141.56.51.254";
firewall.allowedTCPPorts = [
25
80
443
597
];
};
services.openssh.enable = true;
services.forgejo = {
services = {
openssh.enable = true;
forgejo = {
enable = true;
settings = {
@ -63,7 +68,7 @@ in
};
};
services.nginx = {
nginx = {
enable = true;
virtualHosts."${config.networking.fqdn}" = {
forceSSL = true;
@ -75,13 +80,8 @@ in
};
};
};
};
networking.firewall.allowedTCPPorts = [
25
80
443
597
];
system.stateVersion = "24.11";