nix-config/modules/nix/containers/docker.nix
smayzy 325a193a38
All checks were successful
nixos config pipeline / show-flake (push) Successful in 33s
nixos config pipeline / deploy (push) Successful in 39s
add docker
2025-08-29 18:53:11 +02:00

21 lines
350 B
Nix

{
lib,
config,
...
}:
let
inherit (lib) mkIf mkOption types;
in
{
options.smayzy.docker.enable = mkOption {
type = types.bool;
default = false;
description = "enable docker";
};
config = mkIf config.smayzy.docker.enable {
virtualisation.docker.enable = true;
users.extraGroups.docker.members = [ "smayzy" ];
};
}