nixos/modules/system/server/docker/default.nix

21 lines
424 B
Nix
Raw Permalink Normal View History

2024-10-28 21:26:34 +01:00
{ config, lib, ... }:
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" ];
};
}