about summary refs log tree commit diff
path: root/nixos/modules/virtualisation
diff options
context:
space:
mode:
authorDanylo Hlynskyi <abcz2.uprola@gmail.com>2017-10-05 00:42:50 +0000
committerGitHub <noreply@github.com>2017-10-05 00:42:50 +0000
commitdc8500165ca456df4ea9c4e828ea6dfb85797feb (patch)
treed9cbe54e45b4ea889c4e65c6e4f424ddf14c81e0 /nixos/modules/virtualisation
parentc42b878ed376182e0c3db0262388877d1445870b (diff)
downloadnixlib-dc8500165ca456df4ea9c4e828ea6dfb85797feb.tar
nixlib-dc8500165ca456df4ea9c4e828ea6dfb85797feb.tar.gz
nixlib-dc8500165ca456df4ea9c4e828ea6dfb85797feb.tar.bz2
nixlib-dc8500165ca456df4ea9c4e828ea6dfb85797feb.tar.lz
nixlib-dc8500165ca456df4ea9c4e828ea6dfb85797feb.tar.xz
nixlib-dc8500165ca456df4ea9c4e828ea6dfb85797feb.tar.zst
nixlib-dc8500165ca456df4ea9c4e828ea6dfb85797feb.zip
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')
-rw-r--r--nixos/modules/virtualisation/containers.nix2
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";
                   };
               };
           }