Docker : Move config to nix.
This commit is contained in:
parent
ed94fcc550
commit
dd2fdd984c
|
@ -3,6 +3,3 @@ export PATH=$( find -L ${HOME}/app/bin/ -type d -printf ":%p" 2> /dev/null ):${P
|
||||||
|
|
||||||
# Bash modules.
|
# Bash modules.
|
||||||
export BASH_MODULE_PATH="${HOME}/.config/bash/module"
|
export BASH_MODULE_PATH="${HOME}/.config/bash/module"
|
||||||
|
|
||||||
# Docker config.
|
|
||||||
export DOCKER_CONFIG="${HOME}/.config/docker"
|
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
{ ... }: {
|
{ environment, ... }: {
|
||||||
virtualisation.docker.enable = true;
|
virtualisation.docker.enable = true;
|
||||||
|
environment.variables.DOCKER_CONFIG = "/etc/docker.json";
|
||||||
|
environment.etc."docker.json".text = ''
|
||||||
|
{
|
||||||
|
"detachKeys": "ctrl-z"
|
||||||
|
}
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -66,10 +66,6 @@
|
||||||
!/.config/bash/
|
!/.config/bash/
|
||||||
!/.config/bash/**
|
!/.config/bash/**
|
||||||
|
|
||||||
# Docker config.
|
|
||||||
!/.config/docker/
|
|
||||||
!/.config/docker/**
|
|
||||||
|
|
||||||
# MangoHud config.
|
# MangoHud config.
|
||||||
!/.config/MangoHud/
|
!/.config/MangoHud/
|
||||||
!/.config/MangoHud/**
|
!/.config/MangoHud/**
|
||||||
|
|
Reference in a new issue