Toto je starší verze dokumentu!
NixOS template is available based on NixOS 17.03. NixOS allows declarative configuration management of the whole system and deployed services.
Configuration is available at
/etc/nixos/configuration.nix
This can be altered to change container configuration on the fly or for next reboot. Try changing container hostname and running
nixos-rebuild switch
to build new configuration and directly switch to it. To switch to new configuration after reboot (set as a default boot profile) use
nixos-rebuild boot
Packages can be installed system wide via configuration.nix or for local profile via
nix-env
To install vim use
nix-env -iA nixos.vim
To search for a package use
nix-env -qaP postgre
Consult NixOS manual for more https://nixos.org/nixos/manual/