[container-dev] Add container configs like policy.json and regitries.conf

This commit is contained in:
2026-08-14 15:34:48 -07:00
parent 9ed7a9ad48
commit 0c4856154e
+15 -10
View File
@@ -1,6 +1,13 @@
{ ... }: _: {
{
virtualisation = { virtualisation = {
containers = {
enable = true;
registries.search = [
"docker.io"
"docker.havenisms.com"
];
};
docker = { docker = {
enable = true; enable = true;
# rootless = { # rootless = {
@@ -15,14 +22,12 @@
hardware.nvidia-container-toolkit.enable = true; 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 = ''
# Add the path to the docker socket to the environment. export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/docker.sock
programs.zsh.envExtra = '' '';
export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/docker.sock };
'';
};
# add me to the docker group so I can access it. # add me to the docker group so I can access it.
users.users.drew.extraGroups = [ "docker" ]; users.users.drew.extraGroups = [ "docker" ];