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
|
./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";
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue