Difference between revisions of "NixOS"

From PrgmrWiki
(Created page with "If you use nixos-generate-config to generate your initial configuration, what you get is almost good enough to boot a Prgmr.com VPS. You need to...")
 
 
Line 17: Line 17:
 
You'll probably want to add static addresses for your network interface.  If you want IPv6, you'll have to add static addresses, since we don't have                                                                                       
 
You'll probably want to add static addresses for your network interface.  If you want IPv6, you'll have to add static addresses, since we don't have                                                                                       
 
autoconfiguration.
 
autoconfiguration.
 +
 +
== External Links ==
 +
 +
* [https://push.cx/2018/nixos NixOS on prgmr]

Latest revision as of 19:24, 4 July 2018

If you use nixos-generate-config to generate your initial configuration, what you get is almost good enough to boot a Prgmr.com VPS. You need to add or change a few lines.

The boot.loader.grub.device entry should read:

boot.loader.grub.device = "/dev/xvda";

And the following two lines insure that the serial console is used:

boot.loader.grub.extraConfig = "serial --unit=0 --speed=115200 ; terminal_input serial console ; terminal_output serial console";                              
boot.kernelParams = ["console=ttyS0"];                                                                                                                         

You'll probably want to add static addresses for your network interface. If you want IPv6, you'll have to add static addresses, since we don't have autoconfiguration.

External Links