1
0
Fork 0
forked from emily/nixfiles

Fix deprecated networkd and forgejo settings

This commit is contained in:
emily 2024-06-12 17:06:23 +02:00
parent 2cf362376c
commit 28817ddac9
Signed by untrusted user: emily
GPG key ID: F6F4C66207FCF995
7 changed files with 11 additions and 14 deletions

View file

@ -2,6 +2,7 @@
networking = {
domain = mkDefault "kyouma.net";
dhcpcd.enable = false;
useDHCP = false;
nftables.enable = mkDefault true;
firewall.logRefusedConnections = mkDefault false;
};

View file

@ -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"; }
];
};

View file

@ -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";

View file

@ -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 = {

View file

@ -14,7 +14,7 @@
IPv6AcceptRA = false;
};
routes = [
{ routeConfig.Gateway = "fe80::1"; }
{ Gateway = "fe80::1"; }
];
};
}

View file

@ -14,6 +14,5 @@
};
};
networking.useDHCP = false;
networking.useHostResolvConf = false;
}

View file

@ -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";