Try to fix networking
This commit is contained in:
parent
45b43cf4d9
commit
6a39ccced0
1 changed files with 16 additions and 0 deletions
|
|
@ -18,6 +18,22 @@
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
networking.useDHCP = false;
|
||||||
|
systemd.network = {
|
||||||
|
enable = true;
|
||||||
|
networks."10-enp1s0" = {
|
||||||
|
matchConfig.Name = "enp1s0";
|
||||||
|
networkConfig.DHCP = "ipv4";
|
||||||
|
dhcpV4Config = {
|
||||||
|
UseGateway = false;
|
||||||
|
UseRoutes = false;
|
||||||
|
};
|
||||||
|
routes = [
|
||||||
|
{routeConfig = {Gateway = "172.31.1.1"; GatewayOnLink = true;};}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings.PasswordAuthentication = true;
|
settings.PasswordAuthentication = true;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue