Bruno BELANYI
1751704ab3
All checks were successful
continuous-integration/drone/push Build is passing
26 lines
550 B
Nix
26 lines
550 B
Nix
# Podman related settings
|
|
{ config, lib, options, ... }:
|
|
let
|
|
cfg = config.my.system.podman;
|
|
in
|
|
{
|
|
options.my.system.podman = with lib; {
|
|
enable = mkEnableOption "podman configuration";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
virtualisation.podman = {
|
|
enable = true;
|
|
|
|
# Use fake `docker` command to redirect to `podman`
|
|
dockerCompat = true;
|
|
|
|
# Expose a docker-like socket
|
|
dockerSocket.enable = true;
|
|
|
|
# Allow DNS resolution in the default network
|
|
defaultNetwork.dnsname.enable = true;
|
|
};
|
|
};
|
|
}
|