flocon/modules/docker.nix

17 lines
368 B
Nix

{ config, lib, ... }:
let
cfg = config.modules.docker;
in
{
options.modules.docker.enable = lib.mkEnableOption "docker module";
config = lib.mkIf cfg.enable {
virtualisation.docker = {
enable = true;
rootless = {
enable = true;
setSocketVariable = true;
};
};
users.users.nezia.extraGroups = [ "docker" ];
};
}