From 0c4856154ec7168609df27999843d5235071decb Mon Sep 17 00:00:00 2001 From: Drew Haven Date: Fri, 14 Aug 2026 15:34:48 -0700 Subject: [PATCH] [container-dev] Add container configs like policy.json and regitries.conf --- system/features/container-dev.nix | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/system/features/container-dev.nix b/system/features/container-dev.nix index 3f6fcc0..4e80056 100644 --- a/system/features/container-dev.nix +++ b/system/features/container-dev.nix @@ -1,6 +1,13 @@ -{ ... }: -{ +_: { virtualisation = { + containers = { + enable = true; + registries.search = [ + "docker.io" + "docker.havenisms.com" + ]; + }; + docker = { enable = true; # rootless = { @@ -15,14 +22,12 @@ hardware.nvidia-container-toolkit.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 - ''; - }; + 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 + ''; + }; # add me to the docker group so I can access it. users.users.drew.extraGroups = [ "docker" ];