Merge pull request #230109 from vdot0x23/docker-extraPackages

nixos/docker: add extraPackages option
This commit is contained in:
Pol Dellaiera 2023-07-26 15:14:13 +02:00 committed by GitHub
commit d242834675
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -158,6 +158,15 @@ in
Docker package to be used in the module.
'';
};
extraPackages = mkOption {
type = types.listOf types.package;
default = [ ];
example = literalExpression "with pkgs; [ criu ]";
description = lib.mdDoc ''
Extra packages to add to PATH for the docker daemon process.
'';
};
};
###### implementation
@ -194,7 +203,8 @@ in
};
path = [ pkgs.kmod ] ++ optional (cfg.storageDriver == "zfs") pkgs.zfs
++ optional cfg.enableNvidia pkgs.nvidia-docker;
++ optional cfg.enableNvidia pkgs.nvidia-docker
++ cfg.extraPackages;
};
systemd.sockets.docker = {