15 lines
247 B
Nix
15 lines
247 B
Nix
|
{ config, lib, ... }:
|
||
|
|
||
|
let
|
||
|
cfg = config.my.docker;
|
||
|
in {
|
||
|
options.my.docker = {
|
||
|
enable = lib.mkEnableOption null;
|
||
|
};
|
||
|
|
||
|
config = lib.mkIf cfg.enable {
|
||
|
virtualisation.docker.enable = true;
|
||
|
my.user.extraGroups = [ "docker" ];
|
||
|
};
|
||
|
}
|