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