Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

declarative containers: improve example config #30107

Merged
merged 1 commit into from Nov 4, 2017
Merged

Conversation

danbst
Copy link
Contributor

@danbst danbst commented Oct 5, 2017

Container config example code mentions postgresql service, but the correct use of that service involves setting system.stateVersion option (as discovered in #30056).

The actual system state version is set randomly to 17.03 because I have no preferences here

Container config example code mentions `postgresql` service, but the correct use of that service involves setting `system.stateVersion` option (as discovered in NixOS#30056).

The actual system state version is set randomly to 17.03 because I have no preferences here
@@ -596,6 +596,8 @@ in
{ config, pkgs, ... }:
{ services.postgresql.enable = true;
services.postgresql.package = pkgs.postgresql96;

system.stateVersion = "17.03";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps could try having system.stateVersion = "${config.system.nixosRelease}"; here? My idea is to automatically keep it up to date…

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, that would be great, but if we go that way, we should go consistently.

See https://github.com/NixOS/nixpkgs/blob/release-17.09/nixos/modules/misc/version.nix#L53, for example. It backreferences 16.03

@FRidh FRidh merged commit ae23084 into NixOS:master Nov 4, 2017
@danbst danbst deleted the patch-13 branch November 4, 2017 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants