Files
nixos-blueprint/hosts/sarien/system/virtual/podman.nix
unexplrd 2e6e28ef32 initial
2025-02-06 00:33:06 +02:00

29 lines
491 B
Nix

{
pkgs,
config,
lib,
...
}:
with lib; let
cfg = config.virtual.podman;
in {
options = {
virtual.podman.enable =
mkEnableOption "enables podman";
};
config = mkIf cfg.enable {
virtualisation = {
containers.enable = true;
podman = {
enable = true;
dockerCompat = true;
defaultNetwork.settings.dns_enabled = true;
};
};
environment.systemPackages = with pkgs; [
podman-tui
podman-compose
];
};
}