21 lines
350 B
Nix
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" ];
|
|
};
|
|
}
|