2024-10-28 21:26:34 +01:00
|
|
|
{ config, lib, ... }:
|
2024-05-28 10:12:33 +02:00
|
|
|
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
cfg = config.modules.system.server.docker;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.modules.system.server.docker = {
|
|
|
|
enable = mkEnableOption ''
|
|
|
|
Enable docker with my custom configurations
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
virtualisation.docker = {
|
|
|
|
enable = true;
|
|
|
|
};
|
2024-10-25 14:46:24 +02:00
|
|
|
virtualisation.oci-containers.backend = "docker";
|
2024-06-18 19:44:19 +02:00
|
|
|
|
|
|
|
users.users.florian.extraGroups = [ "docker" ];
|
2024-05-28 10:12:33 +02:00
|
|
|
};
|
|
|
|
}
|