mirror of
https://github.com/ellmau/nixos.git
synced 2025-12-18 09:19:39 +01:00
23 lines
401 B
Nix
23 lines
401 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
with lib; {
|
|
options.elss.container.podman.enable = mkEnableOption "enable podman dockerisation";
|
|
|
|
config = let
|
|
cfg = config.elss.container.podman;
|
|
in
|
|
mkIf cfg.enable {
|
|
virtualisation = {
|
|
podman = {
|
|
enable = true;
|
|
dockerCompat = true;
|
|
defaultNetwork.settings.dns_enabled = true;
|
|
};
|
|
};
|
|
};
|
|
}
|