docker: use lib.versionOlder in literalExpression

This commit is contained in:
Sandro 2024-11-05 11:23:29 +01:00 committed by GitHub
parent 12ba522dfd
commit a96e4d9bfe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -60,7 +60,7 @@ in
# Prior to NixOS 24.11, this was set to true by default, while upstream defaulted to false. # Prior to NixOS 24.11, this was set to true by default, while upstream defaulted to false.
# Keep the option unset to follow upstream defaults # Keep the option unset to follow upstream defaults
default = versionOlder config.system.stateVersion "24.11"; default = versionOlder config.system.stateVersion "24.11";
defaultText = literalExpression "versionOlder config.system.stateVersion \"24.11\""; defaultText = literalExpression "lib.versionOlder config.system.stateVersion \"24.11\"";
description = '' description = ''
Allow dockerd to be restarted without affecting running container. Allow dockerd to be restarted without affecting running container.
This option is incompatible with docker swarm. This option is incompatible with docker swarm.