Files
system-config/system/features/container-dev.nix

19 lines
335 B
Nix

{ ... }:
{
virtualisation = {
docker = {
enable = true;
rootless.enable = true;
};
};
home-manager.users.drew =
{ ... }:
{
# Add the path to the docker socket to the environment.
programs.zsh.envExtra = ''
export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/docker.sock
'';
};
}