use pkgs.formats.json
This commit is contained in:
parent
c1b0d4acf5
commit
e8dae9246b
|
@ -8,8 +8,8 @@ let
|
|||
|
||||
cfg = config.virtualisation.docker;
|
||||
proxy_env = config.networking.proxy.envVars;
|
||||
daemonSettingsJson = builtins.toJSON cfg.daemon.settings;
|
||||
daemonSettingsFile = pkgs.writeText "daemon.json" daemonSettingsJson;
|
||||
settingsFormat = pkgs.formats.json {};
|
||||
daemonSettingsFile = settingsFormat.generate "daemon.json" cfg.daemon.settings;
|
||||
in
|
||||
|
||||
{
|
||||
|
@ -55,7 +55,7 @@ in
|
|||
|
||||
daemon.settings =
|
||||
mkOption {
|
||||
type = types.anything;
|
||||
type = settingsFormat.type;
|
||||
default = { };
|
||||
example = {
|
||||
ipv6 = true;
|
||||
|
|
Loading…
Reference in a new issue