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" +} +