Docker : Move config to nix.

This commit is contained in:
Dmitry Voronin 2024-02-24 23:31:30 +03:00
parent ed94fcc550
commit dd2fdd984c
3 changed files with 7 additions and 8 deletions

View file

@ -3,6 +3,3 @@ export PATH=$( find -L ${HOME}/app/bin/ -type d -printf ":%p" 2> /dev/null ):${P
# Bash modules.
export BASH_MODULE_PATH="${HOME}/.config/bash/module"
# Docker config.
export DOCKER_CONFIG="${HOME}/.config/docker"

View file

@ -1,3 +1,9 @@
{ ... }: {
{ environment, ... }: {
virtualisation.docker.enable = true;
environment.variables.DOCKER_CONFIG = "/etc/docker.json";
environment.etc."docker.json".text = ''
{
"detachKeys": "ctrl-z"
}
'';
}

4
.gitignore vendored
View file

@ -66,10 +66,6 @@
!/.config/bash/
!/.config/bash/**
# Docker config.
!/.config/docker/
!/.config/docker/**
# MangoHud config.
!/.config/MangoHud/
!/.config/MangoHud/**