25 lines
475 B
Nix
25 lines
475 B
Nix
{ lib
|
|
, pkgs
|
|
, config
|
|
, ...
|
|
}:
|
|
with lib; let
|
|
cfg = config.eboskma.docker;
|
|
in
|
|
{
|
|
options.eboskma.docker = { enable = mkEnableOption "activate docker"; };
|
|
|
|
config = mkIf cfg.enable {
|
|
environment.systemPackages = with pkgs; [ docker-compose ];
|
|
|
|
virtualisation.docker = {
|
|
enable = true;
|
|
autoPrune = {
|
|
enable = true;
|
|
dates = "weekly";
|
|
};
|
|
};
|
|
|
|
users.extraUsers.${config.eboskma.var.mainUser}.extraGroups = [ "docker" ];
|
|
};
|
|
}
|