Install NixOS on Online.Net: Difference between revisions
imported>Samae |
imported>Nix m add Server category |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 92: | Line 92: | ||
. /root/.nix-profile/etc/profile.d/nix.sh | . /root/.nix-profile/etc/profile.d/nix.sh | ||
nix-channel --remove nixpkgs | nix-channel --remove nixpkgs | ||
nix-channel --add http://nixos.org/channels/nixos-17. | nix-channel --add http://nixos.org/channels/nixos-17.09 nixos | ||
nix-channel --update | nix-channel --update | ||
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"; | ||
Line 179: | Line 188: | ||
See [https://github.com/NixOS/nixpkgs/commit/6ebe4a6a523bbab3388453ac119ab08e295a7e06 this commit] for the fix. | See [https://github.com/NixOS/nixpkgs/commit/6ebe4a6a523bbab3388453ac119ab08e295a7e06 this commit] for the fix. | ||
[[Category:Server]] |