nix/module/DockerRootless.nix

12 lines
307 B
Nix
Raw Normal View History

2024-04-06 03:03:58 +03:00
{ pkgs, key, util, ... } @args: let
docker = import ./docker/Init.nix args;
config = pkgs.writeText "dockerConfig" docker.text;
in {
environment.variables.DOCKER_CONFIG = config;
virtualisation.docker.enable = true;
virtualisation.docker.rootless = {
enable = true;
setSocketVariable = true;
};
}