nixos/modules/system/server/docker/default.nix
Florian RICHER 34cbb44cc1
All checks were successful
check / check (push) Successful in 33s
Add distrobox
2024-06-18 19:44:19 +02:00

21 lines
No EOL
443 B
Nix

{ config, pkgs, 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;
enableNvidia = config.modules.system.hardware.nvidia.enable;
};
users.users.florian.extraGroups = [ "docker" ];
};
}