261 current 2025-10-11 02:26:00 25.05.20251006.20c4598 6.12.50 *
This commit is contained in:
24
modules/system/podman.nix
Normal file
24
modules/system/podman.nix
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
{ pkgs, config, lib, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.modules.system.podman;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.modules.system.podman = {
|
||||||
|
enable = lib.mkEnableOption "enables podman";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
virtualisation = {
|
||||||
|
oci-containers.backend = "podman";
|
||||||
|
podman = {
|
||||||
|
enable = true;
|
||||||
|
dockerCompat = true;
|
||||||
|
autoPrune.enable = true;
|
||||||
|
defaultNetwork.settings = {
|
||||||
|
dns_enabled = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user