Install NixOS on Online.Net: Difference between revisions
imported>Samae No edit summary |
imported>Armael No edit summary |
||
Line 135: | Line 135: | ||
}; | }; | ||
# Not strictly required, but useful to be able to use the serial console | |||
boot.kernelParams = [ "console=ttyS1" ]; | |||
networking.hostName = "yourhostname"; | networking.hostName = "yourhostname"; | ||
networking.interfaces.eth0 = { ipAddress = "your ip address"; prefixLength = 24; }; | networking.interfaces.eth0 = { ipAddress = "your ip address"; prefixLength = 24; }; | ||
networking.defaultGateway = "your gateway"; | networking.defaultGateway = "your gateway"; | ||
networking.nameservers = [ "62.210.16.6" "62.210.16.7" ]; | networking.nameservers = [ "62.210.16.6" "62.210.16.7" ]; | ||
# By default, systemd "predictable interface names" are used for network interfaces. | |||
# Since the Dedibox SC only has one network interface, it is safe to disable this, | |||
# and simply use eth0 as above. | |||
# If you remove this line, you need to replace "eth0" above by the correct interface name. | |||
networking.usePredictableInterfaceNames = false; | |||
i18n.defaultLocale = "en_US.UTF-8"; | i18n.defaultLocale = "en_US.UTF-8"; |