add docker
This commit is contained in:
1 parent
0b6e55da82
commit
325a193a38
3 files changed
+22
No files matched your search
@@ -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