dotfiles/modules/os/misc/docker.nix

15 lines
247 B
Nix
Raw Normal View History

{ 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" ];
};
}