add docker
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
{
|
||||
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" ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user