group options together
This commit is contained in:
parent
815ecd972f
commit
5c82694beb
1 changed files with 46 additions and 46 deletions
|
|
@ -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";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue