diff options
author | Danylo Hlynskyi <abcz2.uprola@gmail.com> | 2017-10-05 00:42:50 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-05 00:42:50 +0000 |
commit | dc8500165ca456df4ea9c4e828ea6dfb85797feb (patch) | |
tree | d9cbe54e45b4ea889c4e65c6e4f424ddf14c81e0 /nixos/modules/virtualisation/containers.nix | |
parent | c42b878ed376182e0c3db0262388877d1445870b (diff) |
declarative containers: improve example config
Container config example code mentions `postgresql` service, but the correct use of that service involves setting `system.stateVersion` option (as discovered in https://github.com/NixOS/nixpkgs/issues/30056).
The actual system state version is set randomly to 17.03 because I have no preferences here
Diffstat (limited to 'nixos/modules/virtualisation/containers.nix')
-rw-r--r-- | nixos/modules/virtualisation/containers.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/virtualisation/containers.nix b/nixos/modules/virtualisation/containers.nix index 82dfc1c9f1ce..2e91a62c74b2 100644 --- a/nixos/modules/virtualisation/containers.nix +++ b/nixos/modules/virtualisation/containers.nix @@ -596,6 +596,8 @@ in { config, pkgs, ... }: { services.postgresql.enable = true; services.postgresql.package = pkgs.postgresql96; + + system.stateVersion = "17.03"; }; }; } |