flakes/hosts/fondue/networking.nix

21 lines
416 B
Nix
Raw Normal View History

2021-09-20 18:10:28 +07:00
{ config, ... }: {
networking = {
useDHCP = false;
interfaces.enp2s1.useDHCP = false;
interfaces.enp2s1.ipv4.addresses = [{
address = "192.168.100.101";
prefixLength = 24;
}];
defaultGateway = "192.168.100.1";
nameservers = [ "8.8.8.8" ];
2021-09-21 08:26:13 +07:00
extraHosts = ''
10.100.0.2 apricot
10.100.0.3 winter
2021-11-02 00:53:56 +07:00
10.100.0.3 blossom
2021-10-07 11:45:54 +07:00
10.100.0.4 strawberry
2021-09-21 08:26:13 +07:00
'';
2021-09-20 18:10:28 +07:00
};
}