From 154fb096a54aa04f7b93dfe65c226507a216647d Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Mon, 26 Feb 2024 00:00:42 +0300 Subject: [PATCH] Docker : Fix config. --- .config/linux/system/module/Docker.nix | 10 +++------- .config/linux/system/module/docker/config.json | 4 ++++ 2 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 .config/linux/system/module/docker/config.json diff --git a/.config/linux/system/module/Docker.nix b/.config/linux/system/module/Docker.nix index 5450d6d..0940bfe 100644 --- a/.config/linux/system/module/Docker.nix +++ b/.config/linux/system/module/Docker.nix @@ -1,9 +1,5 @@ { environment, ... }: { - virtualisation.docker.enable = true; - environment.variables.DOCKER_CONFIG = "/etc/docker.json"; - environment.etc."docker.json".text = '' - { - "detachKeys": "ctrl-z" - } - ''; + environment.etc.docker.source = ./docker; + environment.variables.DOCKER_CONFIG = "/etc/docker"; + virtualisation.docker.enable = true; } diff --git a/.config/linux/system/module/docker/config.json b/.config/linux/system/module/docker/config.json new file mode 100644 index 0000000..664f00e --- /dev/null +++ b/.config/linux/system/module/docker/config.json @@ -0,0 +1,4 @@ +{ + "detachKeys": "ctrl-z" +} +