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í revizePředchozí verze
Následující verzeObě strany příští revize
navody:distribuce:nixos [2018/10/27 10:29] – use vpsAdminOS template, mark openvz template as unsupported rmarkonavody:distribuce:nixos [2019/03/11 11:29] – added information about firewall by default and how to set it up martyet
Řá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.txt · Poslední úprava: 2023/12/09 14:02 autor: aither