Znalostní Báze

Informace o sdružení vpsFree.cz, návody a nejčastější dotazy.

Uživatelské nástroje

Nástroje pro tento web


navody:distribuce:nixos

Rozdíly

Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.

Odkaz na výstup diff

Obě strany předchozí revize Předchozí verze
navody:distribuce:nixos [2018/10/27 12:29]
rmarko use vpsAdminOS template, mark openvz template as unsupported
navody:distribuce:nixos [2019/03/11 12:29] (aktuální)
martyet added information about firewall by default and how to set it up
Řádek 6: Řádek 6:
  
 If you have set your public SSH keys in vpsAdmin the key will be automatically deployed and you can login as root right away. To be able to login with a password you need to set the password manually after your container is created. If you have set your public SSH keys in vpsAdmin the key will be automatically deployed and you can login as root right away. To be able to login with a password you need to set the password manually after your container is created.
 +
 +==== Initial setup & informations ====
 +
 +After installing NixOS (mainly talking about stable release) you **have to know**, that there is activated firewall by default blocking everything except ssh (port no. 22) so if you want to run some webserver (for example nginx) you have to tell firewall to not block your ports with this in your /​etc/​nixos/​configuration.nix:​nixos
 +
 +<​code>​networking.firewall.allowedTCPPorts = [ 80 443 ];</​code>​
 +
 +Then dont forget to do 
 +
 +<​code>​ nixos-rebuild switch</​code>​ so your changes will take effect (without rebooting)
 +
  
 ==== Configuration ==== ==== Configuration ====
navody/distribuce/nixos.1540636196.txt.gz · Poslední úprava: 2018/10/27 12:29 autor: rmarko