Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.
Obě strany předchozí revizePředchozí verzeNásledující verze | Předchozí verzeNásledující verzeObě strany příští revize | ||
navody:distribuce:nixos [2017/10/11 21:12] – mention seccomp issue jtojnar | navody:distribuce:nixos [2018/10/27 10:29] – use vpsAdminOS template, mark openvz template as unsupported rmarko | ||
---|---|---|---|
Řádek 1: | Řádek 1: | ||
===== NixOS ===== | ===== NixOS ===== | ||
- | NixOS template is available based on NixOS 17.03. | + | NixOS allows declarative configuration management of the whole system and deployed services. |
+ | |||
+ | To start using NixOS choose **[vpsAdminOS] NixOS** template. | ||
+ | |||
+ | 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. | ||
==== Configuration ==== | ==== Configuration ==== | ||
Řádek 8: | Řádek 12: | ||
This can be altered to change container configuration on the fly or for next reboot. Try changing container hostname and running < | This can be altered to change container configuration on the fly or for next reboot. Try changing container hostname and running < | ||
+ | |||
+ | If you are using channels you can update your system by running < | ||
==== Package installation ==== | ==== Package installation ==== | ||
Řádek 20: | Řádek 26: | ||
Consult NixOS manual for more https:// | Consult NixOS manual for more https:// | ||
+ | |||
+ | |||
+ | ===== Legacy OpenVZ templates ===== | ||
+ | |||
+ | <note important> | ||
==== Common issues ==== | ==== Common issues ==== | ||
+ | |||
+ | === SSH public key deployment fails === | ||
+ | |||
+ | This can occur on first boot of the template when there' | ||
=== error: while setting up the build environment: | === error: while setting up the build environment: | ||
Řádek 28: | Řádek 43: | ||
< | < | ||
- | nix.package = (import (pkgs.fetchFromGitHub { | + | |
owner = " | owner = " | ||
repo = " | repo = " | ||
rev = " | rev = " | ||
sha256 = " | sha256 = " | ||
- | }) {}).nix; | + | |
</ | </ | ||
+ | |||
+ | In the future, it will be possible to [[https:// | ||
+ | |||
+ | === systemd 233+ compatibility issues === | ||
+ | |||
+ | Causes boot failures, workaround is pinning systemd to version 232: | ||
+ | < | ||
+ | nixpkgs.config.packageOverrides = super: | ||
+ | let systemdGperfCompat = super.systemd.override { gperf = super.gperf_3_0; | ||
+ | in { | ||
+ | systemd = systemdGperfCompat.overrideAttrs ( oldAttrs: rec { | ||
+ | version = " | ||
+ | name = " | ||
+ | src = pkgs.fetchFromGitHub { | ||
+ | owner = " | ||
+ | repo = " | ||
+ | rev = " | ||
+ | sha256 = " | ||
+ | }; | ||
+ | }); | ||
+ | }; | ||
+ | </ | ||
+ | |||
+ | ==== Details ==== | ||
+ | |||
+ | Log contents | ||
+ | < | ||
+ | Failed to canonicalize path / | ||
+ | |||
+ | $ journalctl -o verbose | ||
+ | _EXE=/ | ||
+ | _CMDLINE=/ | ||
+ | CODE_FILE=src/ | ||
+ | CODE_LINE=133 | ||
+ | CODE_FUNC=unit_file_find_dir | ||
+ | ERRNO=40 | ||
+ | MESSAGE=Failed to canonicalize path / |