Fix deprecated networkd and forgejo settings
This commit is contained in:
parent
2cf362376c
commit
28817ddac9
7 changed files with 11 additions and 14 deletions
|
@ -2,6 +2,7 @@
|
|||
networking = {
|
||||
domain = mkDefault "kyouma.net";
|
||||
dhcpcd.enable = false;
|
||||
useDHCP = false;
|
||||
nftables.enable = mkDefault true;
|
||||
firewall.logRefusedConnections = mkDefault false;
|
||||
};
|
||||
|
|
|
@ -24,12 +24,12 @@
|
|||
IPv6AcceptRA = false;
|
||||
};
|
||||
addresses = [
|
||||
{ addressConfig.Address = "95.217.83.107/26"; }
|
||||
{ addressConfig.Address = "2a01:4f9:4a:1f5f::1/64"; }
|
||||
{ Address = "95.217.83.107/26"; }
|
||||
{ Address = "2a01:4f9:4a:1f5f::1/64"; }
|
||||
];
|
||||
routes = [
|
||||
{ routeConfig.Gateway = "95.217.83.65"; }
|
||||
{ routeConfig.Gateway = "fe80::1"; }
|
||||
{ Gateway = "95.217.83.65"; }
|
||||
{ Gateway = "fe80::1"; }
|
||||
];
|
||||
};
|
||||
|
||||
|
|
|
@ -14,10 +14,7 @@
|
|||
|
||||
kyouma.machine-type.physical = true;
|
||||
|
||||
networking = {
|
||||
hostName = "integra";
|
||||
useDHCP = false;
|
||||
};
|
||||
networking.hostName = "integra";
|
||||
|
||||
systemd.network.networks."98-eth-default" = {
|
||||
matchConfig.Type = "ether";
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
];
|
||||
kyouma.machine-type.physical = false;
|
||||
|
||||
systemd.network.networks."98-eth-static" = {
|
||||
systemd.network.networks."98-eth-default" = {
|
||||
matchConfig.Type = "ether";
|
||||
matchConfig.Name = "e*";
|
||||
linkConfig.RequiredForOnline = "routable";
|
||||
|
@ -20,8 +20,8 @@
|
|||
"185.244.193.190/22"
|
||||
];
|
||||
routes = [
|
||||
{ routeConfig.Gateway = "fe80::1"; }
|
||||
{ routeConfig.Gateway = "185.244.192.1"; }
|
||||
{ Gateway = "fe80::1"; }
|
||||
{ Gateway = "185.244.192.1"; }
|
||||
];
|
||||
};
|
||||
services.powerdns = {
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
IPv6AcceptRA = false;
|
||||
};
|
||||
routes = [
|
||||
{ routeConfig.Gateway = "fe80::1"; }
|
||||
{ Gateway = "fe80::1"; }
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -14,6 +14,5 @@
|
|||
};
|
||||
};
|
||||
|
||||
networking.useDHCP = false;
|
||||
networking.useHostResolvConf = false;
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
};
|
||||
services.forgejo = {
|
||||
enable = true;
|
||||
mailerPasswordFile = config.sops.secrets."services/forgejo/mailerPassword".path;
|
||||
secrets.mailer.PASSWD = config.sops.secrets."services/forgejo/mailerPassword".path;
|
||||
database = {
|
||||
createDatabase = true;
|
||||
type = "postgres";
|
||||
|
|
Loading…
Reference in a new issue