create podman module

This commit is contained in:
2024-12-28 23:09:48 +01:00
parent f699955913
commit 1a478ba01e
3 changed files with 22 additions and 6 deletions

20
modules/nixos/podman.nix Normal file
View File

@@ -0,0 +1,20 @@
{
lib,
config,
...
}: let
cfg = config.myConfig.podman;
in {
options.myConfig.podman = {
enable = lib.mkEnableOption "podman";
};
config = lib.mkIf cfg.enable {
virtualisation.
podman = {
enable = true;
dockerCompat = true;
defaultNetwork.settings.dns_enabled = true;
};
};
}