Enable podman NVidia support and TCP socket
This commit is contained in:
parent
543dba91de
commit
361f6adc5f
1 changed files with 10 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue