[container-dev] Add container configs like policy.json and regitries.conf
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
{ ... }:
|
||||
{
|
||||
_: {
|
||||
virtualisation = {
|
||||
containers = {
|
||||
enable = true;
|
||||
registries.search = [
|
||||
"docker.io"
|
||||
"docker.havenisms.com"
|
||||
];
|
||||
};
|
||||
|
||||
docker = {
|
||||
enable = true;
|
||||
# rootless = {
|
||||
@@ -15,9 +22,7 @@
|
||||
|
||||
hardware.nvidia-container-toolkit.enable = true;
|
||||
|
||||
home-manager.users.drew =
|
||||
{ ... }:
|
||||
{
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user