nix/modules/services/docker/default.nix

17 lines
300 B
Nix
Raw Normal View History

2024-11-24 20:15:38 +01:00
{
lib,
config,
username,
...
}: {
options = {
docker.enable = lib.mkEnableOption "";
};
config = lib.mkIf config.docker.enable {
virtualisation.docker.rootless.enable = true;
virtualisation.docker.enable = true;
users.users.${username}.extraGroups = ["docker"];
};
2024-08-31 17:37:21 +02:00
}