mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
use pkgs.formats.json
This commit is contained in:
parent
c1b0d4acf5
commit
e8dae9246b
1 changed files with 3 additions and 3 deletions
|
@ -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