diff --git a/modules/docker/default.nix b/modules/docker/default.nix index 03743bf..539a113 100644 --- a/modules/docker/default.nix +++ b/modules/docker/default.nix @@ -7,13 +7,22 @@ with lib; let cfg = config.eboskma.docker; in { - options.eboskma.docker = { enable = mkEnableOption "activate docker"; }; + options.eboskma.docker = { + enable = mkEnableOption "podman"; + enableNvidia = mkEnableOption "podman NVidia support"; + enableTcpSocket = mkEnableOption "podman TCP socket"; + }; config = mkIf cfg.enable { environment.systemPackages = with pkgs; [ docker-compose ]; virtualisation.podman = { enable = true; + enableNvidia = cfg.enableNvidia; + networkSocket = mkIf cfg.enableTcpSocket { + enable = true; + openFirewall = true; + }; dockerSocket.enable = true; dockerCompat = true; defaultNetwork.dnsname.enable = true;